Skip to content

Instantly share code, notes, and snippets.

@arivasvera
Created August 23, 2019 13:18
Show Gist options
  • Save arivasvera/7274dc151340ae04bd18d25139a6a419 to your computer and use it in GitHub Desktop.
Save arivasvera/7274dc151340ae04bd18d25139a6a419 to your computer and use it in GitHub Desktop.
Payment URL is a functionality that allows you to provide a link to your customers (e.g. in an email invoice, WhatsApp message, SMS, QR code, etc.) which then takes the customer to a First Datahosted page to securely make the payment with their preferred payment method, whenever convenient for them.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ipg="http://ipg-online.com/ipgapi/schemas/ipgapi" xmlns:a1="http://ipg-online.com/ipgapi/schemas/a1" xmlns:v1="http://ipg-online.com/ipgapi/schemas/v1">
<soapenv:Header/>
<soapenv:Body>
<ipg:IPGApiActionRequest>
<a1:Action>
<a1:CreatePaymentURL>
<a1:Transaction>
<v1:PaymentUrlTxType>
<v1:StoreId>5900000000</v1:StoreId> <!-- optional -->
<v1:Type>sale</v1:Type>
</v1:PaymentUrlTxType>
<v1:Payment>
<v1:ChargeTotal>100.00</v1:ChargeTotal>
<v1:Currency>032</v1:Currency>
</v1:Payment>
<v1:TransactionDetails>
<v1:OrderId>MY-ORDER-ID-001</v1:OrderId> <!-- optional -->
</v1:TransactionDetails>
</a1:Transaction>
<a1:Expiration>1566566059876</a1:Expiration> <!-- optional: date in unix timestamp -->
</a1:CreatePaymentURL>
</a1:Action>
</ipg:IPGApiActionRequest>
</soapenv:Body>
</soapenv:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment