Developer Discussions

Ask a Question

Create Card of Customer returning Token is invalid.

curl --request POST
--url
https://pg-sandbox.paymaya.com/payments/v1/customers/69630630-620e-443f-bad0-94e5fb4215e7/cards
--header 'accept: application/json'
--header 'authorization: Basic c2stTk1kYTYwN0ZlWk5HUnQ5eENkc0lSaVo0THF1NkxUODk4SXRIYk40cVBTZTo='
--header 'content-type: application/json'
--data '
{
"redirectUrl": {
"success": "https://www.sample.com/success.html",
"failure": "https://www.sample.com/failed.html",
"cancel": "https://www.sample.com/cancel.html"
},
"paymentTokenId": "xJvxVEQjqla9aQZQmkgNqJaWXIxa0ToPpFZwoIsGhpHgCWZ0w9CGIJ0Xcj8Vo89MTCYjz2TteMclZcPkJwMlfwsvk3CNBx3ursibTXU8amzlbD5MBbK8hn7y1UsJnItO4J3sem8cPldB9HBLcV39iF30elmDklB0NCBm6P9gc",
"isDefault": true
}
'