Payment page
POST
/api/payment/pageAllows you to login to an Easytransac payment page dedicated to a single secure payment.
Our hosted payment page is the ideal solution for offering your customers online payments on your ecommerce site. It combines great versatility with minimal requirements. Your PCI-DSS constraints are very low, Easytransac handles the processing of sensitive data.
Request
Transaction amount in cents
Customer IP address
The customer's email address associated with the payment
Sends an email with the link to the payment page directly to the customer (no by default)
Sends an SMS with the link to the payment page directly to the customer (no by default)
Use 3DSecure or not (enabled by default).
Your unique transaction identifier (or order number)
Description of the transaction (use \n to make a line break)
Leave the amount free, the end customer will have to enter it
Force entry of the invoice number
For a card payment; make a pre-authorization only, the payment must be completed via the webservice "capture".
For a card payment; duration of reservation of an amount during a pre-authorization, in days (1 to 6)
Save the card for future use
For a direct debit only, in B2B mode it will not be contestable by the customer
This mode is only used to manage the collection of payments between companies. It does not apply to individuals or self-employed persons
The payment page is sent later by email or SMS
Transaction category (credit card payment, SDD direct debit or bank transfer)
URL to which the customer is redirected once the payment is made
The status of the transaction is systematically returned in POST on this return URL
URL to which the customer is redirected after clicking on "Abort"
The status of the transaction is returned in POST on this URL
The ReturnUrl
parameter passing is by default in POST, you can force it in GET
Only the "essential" parameters are returned in this case
Unique Easytransac customer identifier (if you have already made a payment for this customer)
Your customer unique identifier
Customer's first name
Customer's last name
Customer's address
Customer's postal code
Customer's city
Customer's country of residence
Customer's birth date
Customer's nationality (ISO 3166-1 Alpha 3)
Customer's calling code
Customer's phone number
Allows you to split the transaction into several payments (for example, for an amount of 300 euros, the deposit will be 100 euros by default, a payment of 100 euros will take place 30 days later, then a final payment of 100 euros after 60 days)
Number of payments to be made in total when paying in installments, including deposit (default is 3)
Deposit for a payment in several instalments (33% of the total by default, if payment in 3 instalments for example) or amount of the first payment (for a subscription, if the first payment is different from the following)
Activate or not the subscription (recurring payments)
Frequency of direct debit of subscriptions (monthly by default)
Allows you to redirect the collection of this transaction to the account of another Easytransac user
Allows you to redirect the collection of this transaction to the account of another Easytransac user, by his unique ID
Invoice PDF content (base64 encoded), it will be attached to the email sent to your customer and visible on the payment page
Type of file transmitted
Name given to the PDF document when it is downloaded
Indicates the capabilities of the client browser
Language of the payment page
Signature to verify the integrity of the data sent
Responses
{
"Code": 0,
"Signature": "1f51786246a940677afe71f6968972fd46500bd1",
"Result": {
"RequestId": "a1b2c3d4e5f6",
"OperationType": "payment",
"PaymentMethod": "Api",
"Status": "tosend",
"Date": "2019-06-03 17:05:30",
"DateSent": "2019-06-03 17:05:30",
"Amount": "29.99",
"3DSecure": "yes",
"PageUrl": "https://www.easytransac.com/pay/a1b2c3d4e5f6",
"Email": "john@doe.com",
"Phone": "0612131415",
"Live": "yes",
"Language": "FRE"
}
}