Developer Discussions
Add customer card in vault
Is sandbox working properly for acc card to customer? i'm always getting an error PY0008 when i add the tokenized card to the customer.
What's the Expiration Time of a Payment Token
The API used is Create Payment Token API
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
}
'