Payment Intent
Payment Intent
API Documentation
Payment Intent
Transfer
Payment Intent
Payment Intent
POST
/
payment_intent
curl --request POST \
--url https://api-v2.ziina.com/api/payment_intent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 123,
"currency_code": "<string>",
"message": "<string>",
"success_url": "<string>",
"cancel_url": "<string>",
"failure_url": "<string>",
"test": true,
"transaction_source": "directApi",
"expiry": "<string>",
"allow_tips": true
}'
{
"id": "<string>",
"account_id": "<string>",
"amount": 123,
"tip_amount": 123,
"fee_amount": 123,
"currency_code": "<string>",
"created_at": "<string>",
"status": "requires_payment_instrument",
"operation_id": "<string>",
"message": "<string>",
"redirect_url": "<string>",
"success_url": "<string>",
"cancel_url": "<string>",
"latest_error": {
"message": "<string>",
"code": "<string>"
},
"allow_tips": true
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
default - application/json
Created payment intent
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api-v2.ziina.com/api/payment_intent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 123,
"currency_code": "<string>",
"message": "<string>",
"success_url": "<string>",
"cancel_url": "<string>",
"failure_url": "<string>",
"test": true,
"transaction_source": "directApi",
"expiry": "<string>",
"allow_tips": true
}'
{
"id": "<string>",
"account_id": "<string>",
"amount": 123,
"tip_amount": 123,
"fee_amount": 123,
"currency_code": "<string>",
"created_at": "<string>",
"status": "requires_payment_instrument",
"operation_id": "<string>",
"message": "<string>",
"redirect_url": "<string>",
"success_url": "<string>",
"cancel_url": "<string>",
"latest_error": {
"message": "<string>",
"code": "<string>"
},
"allow_tips": true
}