Developer Discussions

Ask a Question
Back to All

`POST` Create Customer Card returns an invalid verification url

Hello Maya,

I'm invoking the ff endpoint payments/v1/customers/:customerId/cards in order to save a customer card and generate a cardTokenId + verificationUrl. The API is able to respond with status 200 OK with a state response of PREVERIFICATIONand a verificationUrl. However whenever I try to access the verificationUrl via web in order to update its status, it's leading me to a generic Invalid Requestpage from Maya. I was expecting some sort of OTP

here's a sample payload

{
	"paymentTokenId": "8ls6rsNrfu7Fxqh5F31Zyk6SRrPFhaqExRVBxX6cIZiQviKcu8HvAAIjBsNuM1nSVTZkZmLwrWWElJgxo0cVymnHhmUJ4VGgRbDPQfWqvxjXF3njowxRp5uZxSsnVMiexpBJxPlNVQHO5TfPeRj5Rbh2OHVrMK3nvaFzg",
	"isDefault": true,
	"redirectUrl": {
		"success": "http://www.example.com/success",
		"failure": "http://www.example.com/failure",
		"cancel": "http://www.example.com/cancel"
	},
	"requestReferenceNumber": "0752c2f2-8e9e-4dd6-b5c4-93945ed23ca1"
}

for the header, I'm using our encoded Secret Key

here's the response with verificationUrl

{
	"cardTokenId": "8ls6rsNrfu7Fxqh5F31Zyk6SRrPFhaqExRVBxX6cIZiQviKcu8HvAAIjBsNuM1nSVTZkZmLwrWWElJgxo0cVymnHhmUJ4VGgRbDPQfWqvxjXF3njowxRp5uZxSsnVMiexpBJxPlNVQHO5TfPeRj5Rbh2OHVrMK3nvaFzg",
	"cardType": "visa",
	"maskedPan": "3335",
	"createdAt": "2025-01-05T01:01:29.812Z",
	"updatedAt": "2025-01-05T01:01:29.830Z",
	"id": "e10183a2-d62f-466f-b61a-8f84b8422b8a",
	"state": "PREVERIFICATION",
	"default": true,
	"verificationUrl": "https://payments-web-sandbox.maya.ph/authenticate?id=e10183a2-d62f-466f-b61a-8f84b8422b8a"
}

and here's the image of the page error

Admin

Hello Jett,

Your request payload looks correct, and your system successfully received a response from Maya. It seems the error occurred because the verification request or link has already expired. Please try creating the transaction again, and make sure to access the link within 15 minutes.

Let me know if you are still encountering the same error and share the latest reference number.

Thanks!

ο»Ώ