Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using Apple Pay or their credit card.
MIT License
452
stars
199
forks
source link
Unable to complete checkout with credit card & bogus gateway - invalid credit card #1160
I am trying to complete a checkout using MobileBuySDK's completeCheckoutWithCreditCardV2 method.
As a payment provider I currently use Bogus Gateway and it is set in the shopify admin panel.
The app has its own UI with form for providing credit card details. Once the app has the details, the credit card info is sent to the vaulting service in order to receive a token.
Here's the request that's is sent using MobileBuySDK (I am using test credit card details as stated here):
Credit card invalid error message is received from completeCheckoutWithCreditCardV2 method.
As a note I want to add, that I am able to place an order using Shopify store panel.
Expected result
I am able to use completeCheckoutWithCreditCardV2 method in order to place an order with a credit card using Bogus Gateway.
After further investigation, everything seems to work fine.
I passed a year taking only last two digits instead of the whole year and also forgot to pass verification code.
SDK Mobile Buy SDK iOS/2021-07/6.1.0
Issue description
I am trying to complete a checkout using MobileBuySDK's
completeCheckoutWithCreditCardV2
method.As a payment provider I currently use Bogus Gateway and it is set in the shopify admin panel.
The app has its own UI with form for providing credit card details. Once the app has the details, the credit card info is sent to the vaulting service in order to receive a token. Here's the request that's is sent using MobileBuySDK (I am using test credit card details as stated here):
I receive the following response from the vaulting service:
Then I use the received token to complete a checkout. I use MobileBuySDK, here's the body from the http proxy:
and I receive the following response:
Current result
Credit card invalid error message is received from
completeCheckoutWithCreditCardV2
method. As a note I want to add, that I am able to place an order using Shopify store panel.Expected result
I am able to use
completeCheckoutWithCreditCardV2
method in order to place an order with a credit card using Bogus Gateway.