Initializing the payment
The merchant website initiates a payment request via a call to the Charge/CreatePayment Web Service (or Charge/CreateToken if you just want to register the card, without payment).
POSThttps://api.secure.osb.pf/api-payment/V4/Charge/CreatePayment
Use the fields below to build your request:
NAME | DESCRIPTION | REQUIRED |
---|---|---|
amount | Amount for which authentication is requested. | Yes |
currency | Alphanumeric code of the currency. | Yes |
orderId | Order reference. This field is recommended. | No |
formAction | Type of desired behavior when a transaction is being created. | No |
customer | Object containing buyer’s data. | No |
In order to obtain a more detailed description of the fields to use, test the Charge/CreatePayment Web Service using our playground.
In response, the merchant server retrieves a formToken, an encrypted object allowing to initialize the embedded form with the transaction details and the details corresponding to the shop configuration.