Click the button to make a payment to EmerchantPay

5232105022907162 Jane Jones 03/2025 204 (classic, NO 3d)
4200000000000091 Jane Jones 05/2031 123 (Secured 3d)
EmerchantPay docs:
https://docs.emerchantpay.com/payments/payment-integrations/server-to-server

1) On submit, call backend on /makePayment which fires the following to EmerchantPay

            POST https://username:bb42a099b4c37b3e07b6933534d792ebf1aff049@staging.gate.emerchantpay.net/process/TERMINAL-TOKEN 
            Authorization: 'Bearer *******'
            {
              transaction_id: crypto.randomBytes(16).toString("hex"),
              usage: "Demo Payment Transaction",
              remote_ip: "66.57.89.65",
              amount: "100",
              currency: "USD",
              card_holder: "John Doe",
              card_number: "4200000000000000",
              cvv: "123",
              expiration_month: "05",
              expiration_year: "2031",
              customer_email: "costumer01@gmail.com",
              customer_phone: "+35665544555",
              billing_address: {
                first_name: "John",
                last_name: "Doe",
                address1: "123 Str.",
                zip_code: "10000",
                city: "New York",
                country: "US",
              },
            }
            RESPONSE
            {
              transaction_type: "sale",
              recurring_type: "initial",
              status: "approved",
              mode: "live",
              transaction_id: "119643250547501c79d8295",
              unique_id: "44177a21403427eb96664a6d7e5d5d48",
              consumer_id: "123456",
              token: "ee946db8-d7db-4bb7-b608-b65b153e127d",
              avs_response_code: "5I",
              avs_response_text: "Response provided by issuer processor; Address information not verified",
              cvv_result_code: "M",
              authorization_code: "345678",
              retrieval_reference_number: "016813015184",
              response_code: "00",
              technical_message: "Transaction successful!",
              message: "Transaction successful!",
              timestamp: "2024-03-12T10:55:39Z",
              descriptor: "Descriptor one",
              amount: "100",
              currency: "USD",
              sent_to_acquirer: "true",
              scheme_transaction_identifier: "019091214161031",
              scheme_settlement_date: "0313",
              scheme_response_code: "00",
              reason_for_not_honoring_exemption: "8A01",
              sca_exemption_result: "13",
              account_owner: "{"first_name"=>"Travis", "middle_name"=>"Joe", "last_name"=>"Pastrana"}",
          }