Skip to content

Instantly share code, notes, and snippets.

View arivasvera's full-sized avatar

Andrés Rivas arivasvera

View GitHub Profile
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ipg="http://ipg-online.com/ipgapi/schemas/ipgapi" xmlns:v1="http://ipg-online.com/ipgapi/schemas/v1">
<soapenv:Header/>
<soapenv:Body>
<ipg:IPGApiOrderRequest>
<v1:Transaction>
<v1:CreditCardTxType>
<!--v1:StoreId>5900000000</v1:StoreId-->
<v1:Type>sale</v1:Type> <!-- preauth -->
</v1:CreditCardTxType>
<v1:CreditCardData>
<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:InquiryOrder>
<!--a1:StoreId>5900000000</a1:StoreId-->
<a1:OrderId>my-order-id</a1:OrderId>
</a1:InquiryOrder>
</a1:Action>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ipg="http://ipg-online.com/ipgapi/schemas/ipgapi" xmlns:v1="http://ipg-online.com/ipgapi/schemas/v1">
<soapenv:Header/>
<soapenv:Body>
<ipg:IPGApiOrderRequest>
<v1:Transaction>
<v1:CreditCardTxType>
<v1:Type>void</v1:Type>
</v1:CreditCardTxType>
<v1:TransactionDetails>
<v1:IpgTransactionId>my-order-id</v1:IpgTransactionId>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ipg="http://ipg-online.com/ipgapi/schemas/ipgapi" xmlns:v1="http://ipg-online.com/ipgapi/schemas/v1">
<soapenv:Header/>
<soapenv:Body>
<ipg:IPGApiOrderRequest>
<v1:Transaction>
<v1:CreditCardTxType>
<v1:Type>return</v1:Type> <!-- postauth -->
</v1:CreditCardTxType>
<v1:Payment>
<v1:ChargeTotal>100.00</v1:ChargeTotal>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ipg="http://ipg-online.com/ipgapi/schemas/ipgapi" xmlns:v1="http://ipg-online.com/ipgapi/schemas/v1">
<soapenv:Header/>
<soapenv:Body>
<ipg:IPGApiOrderRequest>
<v1:Transaction>
<v1:CreditCardTxType>
<v1:StoreId>?</v1:StoreId>
<v1:Type>sale</v1:Type> <!-- preauth -->
</v1:CreditCardTxType>
<v1:CreditCardData>
@arivasvera
arivasvera / IPG_CreatePaymentURL.xml
Created August 23, 2019 13:18
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>
<?php
/*
* Helper functions for building a DataTables server-side processing SQL query
*
* The static functions in this class are just helper functions to help build
* the SQL used in the DataTables demo server-side processing scripts. These
* functions obviously do not represent all that can be done with server-side
* processing, they are intentionally simple to show how it works. More complex
* server-side processing operations will likely require a custom script.