Tap-Payments / goSellSDK-iOS

goSell iOS SDK
MIT License
19 stars 20 forks source link

Same card already exists #61

Open rajjatdevsy opened 1 year ago

rajjatdevsy commented 1 year ago

Request:

POST-https://api.tap.company/v2/tokens/

Headers:

Authorization: Bearer sk_test_EmPVuzy6I9K4b8kOawTjs7Lg

application: requirer_version=2.3.1|requirer=SDK|requirer_os_version=16.2|app_id=|requirer_device_type=iPhone|requirer_os=iOS|requirer_sim_country_iso=in|requirer_device_model=iPhone|requirer_sim_network_name=Jio|app_locale=en|requirer_device_name=iPhone

session_token: eyJhbGciOiJIUzI1NiJ9.eyJhcGlfa2V5Ijoic2tfdGVzdF9FbVBWdXp5Nkk5SzRiOGtPYXdUanM3TGciLCJtZXJjaGFudF9pZCI6Ijk5Njc5MDUiLCJsaXZlX21vZGUiOmZhbHNlLCJwZXJtaXNzaW9ucyI6bnVsbCwiZXhwIjoxNjcxNTcxOTAxfQ.XuvDC6xT9GNF0gkQO94qh-eD1oxXINLCICE-vM7fkHY

Content-Type: application/json

Body: { "card" : { "crypted_data" : "IcK3PFiHxBCxMxFcGdgAJ+rJ+a6Uim5wTsbkmhjTS8ZPtqp+ffdrZ9\/+EAeobPLZ8OxxZt6AF5vNNzzK0sTm2FRB2aYN+yuB2bQtr9a1aLcYPiiNLCZ\/EVaFttHpdQzvxaIesl9jHY8rk9fi8lr6Df9dfDjZoPc6YuODK\/SvSQE4bFL320cXKF2SP9km9bdiOYEPdBtyfHBiNx0v\/bq0\/iMZVcq6ajHNey4vO4VgnoJ7dfVkrFNErHAebL2PluG\/CuguWnQ6oJuo2otuDfu4YddM\/4id1MC3T9m+jgwiURFPyqj8uf79KFAX7dRlFVFunta75njsbp0s71IbLc86mw==" } }

Response:

URL: https://api.tap.company/v2/tokens/

HTTP status code: 200

Headers:

Date: Tue, 20 Dec 2022 19:37:04 GMT

Content-Type: application/json; charset=utf-8

Strict-Transport-Security: max-age=15552000; includeSubDomains

x-xss-protection: 1; mode=block

content-security-policy: img-src imgur.com; script-src 'self'; object-src 'none'; frame-ancestors 'none'; default-src 'none'; base-uri 'self'; form-action 'self'

x-webkit-csp: img-src imgur.com; script-src 'self'; object-src 'none'; frame-ancestors 'none'; default-src 'none'; base-uri 'self'; form-action 'self'

x-download-options: noopen

x-frame-options: SAMEORIGIN

x-content-security-policy: img-src imgur.com; script-src 'self'; object-src 'none'; frame-ancestors 'none'; default-src 'none'; base-uri 'self'; form-action 'self'

Content-Length: 396

Etag: W/"18c-5YSNZS1+/Gbk6JdjO9SNZJAunxg" feature-policy: camera 'none';autoplay 'none' x-content-type-options: nosniff x-powered-by: Express referrer-policy: no-referrer x-dns-prefetch-control: off

Body: { "card" : { "address" : {}, "brand" : "VISA", "exp_month" : 12, "exp_year" : 34, "fingerprint" : "v0ifHmKNOVwNsvjIgf83%2FxpFalrmMuW6DFuOI1Fyklc%3D", "first_six" : "400005", "funding" : "DEBIT", "id" : "card_p8JF4221937YeJH20Dr11q677", "last_four" : "5556", "name" : "SIM", "object" : "card", "scheme" : "VISA" }, "created" : 1671565024674, "id" : "tok_uHOf42219378dp720ya11i674", "live_mode" : false, "object" : "token", "type" : "CARD", "used" : false }

TAP SDK KNOWN ERROR : Internal Error description : The operation couldn’t be completed. Same card already exists. Error Domain=company.tap.gosellsdk Code=9 "Same card already exists." UserInfo={NSLocalizedFailureReason=Same card already exists.} URL :
Error Response Body : nil Error URL Body : nil TAP KNOWN SDK ERROR Optional(Error Domain=company.tap.gosellsdk Code=9 "Same card already exists." UserInfo={NSLocalizedFailureReason=Same card already exists.}) TAP SDK ERROR : Error type: Internal TAP SDK KNOWN ERROR : Internal Error description : The operation couldn’t be completed. Same card already exists. Error Domain=company.tap.gosellsdk Code=9 "Same card already exists." UserInfo={NSLocalizedFailureReason=Same card already exists.} URL :
Error Response Body : nil Error URL Body : nil Underlying error: The operation couldn’t be completed. Same card already exists. URL response: nil Body: nil