Tap-Payments / goSellSDK-iOS

goSell iOS SDK
MIT License
19 stars 20 forks source link

Test Card Payment in Sandbox mode not working #22

Open jamilshazad opened 4 years ago

jamilshazad commented 4 years ago

I am trying to do some transactions using the Test card provide in section. I have tried all the cards but getting the below response each time.

"response" : { "code" : "515", "message" : "Declined, Tap" }, "save_card" : true, "source" : { "channel" : "INTERNET", "id" : "tok_CjBXn1311012ji4M527179", "object" : "token", "payment_method" : "MASTERCARD", "payment_type" : "CREDIT", "type" : "CARD_NOT_PRESENT" }, "statement_descriptor" : "Payment statement descriptor will be here", "status" : "DECLINED", "threeDSecure" : true, "transaction" : { "asynchronous" : false, "created" : "1585930920419", "expiry" : { "period" : 30, "type" : "MINUTE" }, "timezone" : "UTC+03:00" }

jamilshazad commented 4 years ago

Actually I was missing the mode. if anyone Testing in the sandbox set the mode to a sandbox. The default mode is set to production. so during initialization set the mode of go sell SDK like below. [GoSellSDK setMode:Sandbox];