Failed to checkoutCompleteWithCreditCardV2 and checkoutCompleteWithTokenizedPaymentV3

13 2 3


My store is a Development Store with a Private App that uses the Storefront GRAPHQL API. Shopify Payments is enabled with Test Mode on.

I just want to use credit card(4242424242424242) to test payment according to but the checkout was finally categorized as an abandoned checkout rather than an valid order.

Below is my procedure:

I used checkoutCreate,  checkoutShippingLineUpdate, associateCustomerWithCheckout to create a checkout with all required information.

Then I used to get a vault ID. Below is the JSON query:

  "credit_card": {
    "number": "4242424242424242",
    "first_name": "John",
    "last_name": "Smith",
    "month": "5",
    "year": "25",
    "verification_value": "123"
I got the vault ID from the result "east-5ea1b526f86d0c650cf791053fa0519c"
Then I use mutation checkoutCompleteWithTokenizedPaymentV3 with the following variables:
  "checkoutId": "{{CheckoutID}}",
  "payment": {
    "paymentAmount": {
      "amount": "132.68",
      "currencyCode": "AUD"
    "idempotencyKey": "202107290909",
    "billingAddress": {
      "firstName": "Ng",
      "lastName": "Peter",
      "address1": "1xxx",
      "country": "Australia",
      "city": "Brisbane",
      "zip": "4199"
    "paymentData": "east-5ea1b526f86d0c650cf791053fa0519c",
    "test": true,
    "type": "VAULT"

Then the following result is shown:

    "data": {
        "checkoutCompleteWithTokenizedPaymentV3": {
            "checkout": {
                "id": "Z2lkOi8vc2hvcGlmeS9DaGVja291dC8xMzgxY2E1Mzg2ZGQ2MjBlYzM2NTI1NjJkYjg0ZDM3Yj9rZXk9Njg2YmEyMzIyMTgxMDgwNWY5ZWM1ZDA2ZmFjYjRjZjI=",
         "order": null
            "checkoutUserErrors": [],
            "payment": {
                "id": "Z2lkOi8vc2hvcGlmeS9QYXltZW50LzI3NDA2MzU1NjYyMzA/Y2hlY2tvdXQ9MTM4MWNhNTM4NmRkNjIwZWMzNjUyNTYyZGI4NGQzN2Ima2V5PTY4NmJhMjMyMjE4MTA4MDVmOWVjNWQwNmZhY2I0Y2Yy"
However, when I checked the website, it went to Abandoned checkouts with the following error message:
Unable to process a payment for $132.68 AUD using a card ending in ... via Vault.
Failed to find requested vault card
But if I use mutation checkoutCompleteWithCreditCardV2, it prompts another error "CheckoutCompleteWithCreditCardV2 access denied".
So what should I do to test the payment successfully?