Undefined Error while adding credit card and How user can modify his credit card details

1,124 views
Skip to first unread message

Anurag Thakur

unread,
Jan 27, 2016, 8:59:00 AM1/27/16
to deliverydotcom API V2, Paul Geller, Tushar Goswami
Hello Guys,

When i am entering credit card details i see 3 undefined errors.

Also is there any way for user to modify/delete his credit card information ?

Thanks
Screen Shot 2016-01-27 at 4.59.59 PM.png

gwhi...@delivery.com

unread,
Feb 3, 2016, 3:47:07 PM2/3/16
to deliverydotcom API V2, pauls...@gmail.com, tus...@techzui.com
Hi Anurag,
I am sorry to hear that you are having trouble.  We do not have a way to modify an existing card.  However, we do have a delete endpoint.  

This is a DELETE call to

/api/customer/cc/{ccid}

You will also need to supply your Authorization header, and your client_id as a parameter in the DELETE call.


In regards to the error you experienced:
What environment (full url) are you pointing the request to?
Can you supply any of the request payload?

Let me know and I will try to figure out what is going on for you.
Best,
Garth

Anurag Thakur

unread,
Feb 4, 2016, 1:01:41 PM2/4/16
to deliverydotcom API V2, pauls...@gmail.com, tus...@techzui.com
Hello,

The undefined error is coming on delivery.com credit card page.When i try to add a credit card , it shows me the 'undefined' error.
URL : http://sandbox.delivery.com/third_party/credit_card/add .
How to reproduce the error :
1> Enter "Add Card" Button with the  blank fields.
2> Enter a random card number.

No proper error is shown here. It always says 'undefined'.

Thanks

gregory hutchinson

unread,
Feb 5, 2016, 1:23:21 AM2/5/16
to deliverydotcom API V2, pauls...@gmail.com, tus...@techzui.com
you can't add 'real' cards to sandbox - i've been able to add '4242424242424242' 
with any arbitrary data for the rest successfully.

probably a few other numbers work - maybe see https://stripe.com/docs/testing and scroll down to "What card numbers should I use for testing?"
to see if other numbers work

gregory hutchinson

unread,
Feb 5, 2016, 2:11:30 AM2/5/16
to deliverydotcom API V2

I've entered any month and any year that's past the current one... CVV I've used 111 but should really just be anything

Hope that helps!

hzh...@delivery.com

unread,
Feb 23, 2016, 5:58:16 PM2/23/16
to deliverydotcom API V2, pauls...@gmail.com, tus...@techzui.com
Here are some credit card number that can be used on sandbox.

Please select any time in the future as expire date and any 3 digits as CVV

6304000000000000Maestro
5555555555554444Mastercard
4009348888881881Visa
Reply all
Reply to author
Forward
0 new messages