Native Payment API
Quick Apple Pay Example (cURL)
curl -X POST "https://sandbox.ottu.net/b/pbl/v2/payment/apple-pay/" \
-H "Authorization: Api-Key GYj5Na8H.29g9hqNjm11nORQMa2WiZwIBQQ49MdAL" \
-H "Content-Type: application/json" \
-d '{
"payload": {
"pg_code": "apple-pay",
"session_id": "str",
"payload": {
"paymentData": {
...
}
} // the apple payment token without modifications
}
}'

The unique pg_code used for this payment instrument.
A unique identifier for the payment transaction (session).
The unique pg_code used for this payment instrument.
A unique identifier for the payment transaction (session).
Private API key to be provided in the format Api-Key <key>.
Api-Key vSUmxsXx.V81oYvOWFMcIywaOu57Utx6VSCmG11loAuto debit serializer should take session_id and consumer payment token then validate if session id is valid if session id is valid then validate if payment gateway supports auto debit if payment gateway supports auto debit then validate if payment gateway has implemented auto debit if payment gateway has implemented auto debit then charge the token and return charge response from client auto_debit method which should be implemented in client
A unique identifier for each payment transaction, used to maintain the session state during the payment process.
Use this field to provide the unique identifier of a saved customer card for processing a payment in the API request.
1️ Can I call the Native Payment API directly from the client?
2️ Which model should I use in production?
3️How do I verify the payment result?
4️What if my transaction has multiple gateway codes?
5️What happens if I modify wallet data?
6️Can I charge saved tokens automatically?
Last updated