How to confirm Paypal Checkout API Credential Setup is correct in Sandbox for X-Cart shopping cart

Amelia999
Contributor
Contributor

I’m trying to set up Paypal Checkout option for my X-Cart reDux/Reboot 4.7.12.8 shopping cart.

 

How can I confirm if my ‘setup’ on my Paypal Developer Sandbox account is correct for my Business Paypal account.

 

My initial testing results on a 201 OK status for request path POST /v2/checkout/orders

 

The Request/Response fields on the transaction follow. I see NO ERRORS on my X-cart Shopping cart test system.

 

 

Request

  • Response

{
  "application_context": {
    "shipping_preference": "SET_PROVIDED_ADDRESS"
  },
  "intent": "CAPTURE",
  "payer": {
    "address": {
      "address_line_1": "*****",
      "address_line_2": "*****",
      "admin_area_1": "CA",
      "admin_area_2": "Salinas",
      "country_code": "US",
      "postal_code": "93907"
    },
    "email_address": "*****",
    "name": {
      "given_name": "*****",
      "surname": "*****"
    }
  },
  "purchase_units": [
    {
      "amount": {
        "breakdown": {
          "discount": {
            "currency_code": "USD",
            "value": 0
          },
          "handling": {
            "currency_code": "USD",
            "value": 0
          },
          "item_total": {
            "currency_code": "USD",
            "value": 3.99
          },
          "shipping": {
            "currency_code": "USD",
            "value": 12.52
          },
          "tax_total": {
            "currency_code": "USD",
            "value": 0
          }
        },
        "currency_code": "USD",
        "value": "16.51"
      },
      "items": [
        {
          "category": "PHYSICAL_GOODS",
          "name": "1/4\" x 3-3/4\" HSS Pilot Bit",
          "quantity": 1,
          "sku": "HP1594",
       "quantity": 1,
          "sku": "HP1594",
          "unit_amount": {
            "currency_code": "USD",
            "value": "3.99"
          }
        }
      ],
      "shipping": {
        "address": {
          "address_line_1": "*****",
          "address_line_2": "*****",
          "admin_area_1": "AZ",
          "admin_area_2": "Tucson",
          "country_code": "US",
          "postal_code": "85750"
        },
        "name": {
          "full_name": "*****"
        },
        "type": "SHIPPING"
      }
    }
  ]
}

 

Response

 

"quantity": 1,

"sku": "HP1594",

"unit_amount": {

"currency_code": "USD",

"value": "3.99"

}

}

],

"shipping": {

"address": {

"address_line_1": "*****",

"address_line_2": "*****",

"admin_area_1": "AZ",

"admin_area_2": "Tucson",

"country_code": "US",

"postal_code": "85750"

},

"name": {

"full_name": "*****"

},

"type": "SHIPPING"

}

}

]

}

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

Kavyar
Moderator
Moderator

Good day @Amelia999 

 

Thank you for posting to the PayPal community.

 

To access your REST API credentials, please follow the steps.

 

  1. Login to your Developer Dashboard
  2. Under the "Testing Tools" section, click on "Sandbox Accounts".
  3. Select the desired account and scroll down.
  4. Navigate to the "REST API apps" section.

 

Once you have accessed your REST API credentials, you can double check them to ensure accuracy.

 

Regarding the HTTP status code 201, it indicates that a new resource has been successfully created using your credentials. This means that when a request is made to a server, the server has processed the request successfully and created a new resource as a result.

 

To know more about response status codes, I would recommend visiting the following link - https://developer.paypal.com/api/rest/responses/

 

If you are still experiencing issues, please create an MTS ticket via the following URL - https://www.paypal-support.com/s/?language=en_US . Please ensure that you provide detailed information and error details when submitting the ticket.

 

Sincerely,

Kavya

PayPal MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

 

View solution in original post

Login to Me Too
2 REPLIES 2
Solved

Kavyar
Moderator
Moderator

Good day @Amelia999 

 

Thank you for posting to the PayPal community.

 

To access your REST API credentials, please follow the steps.

 

  1. Login to your Developer Dashboard
  2. Under the "Testing Tools" section, click on "Sandbox Accounts".
  3. Select the desired account and scroll down.
  4. Navigate to the "REST API apps" section.

 

Once you have accessed your REST API credentials, you can double check them to ensure accuracy.

 

Regarding the HTTP status code 201, it indicates that a new resource has been successfully created using your credentials. This means that when a request is made to a server, the server has processed the request successfully and created a new resource as a result.

 

To know more about response status codes, I would recommend visiting the following link - https://developer.paypal.com/api/rest/responses/

 

If you are still experiencing issues, please create an MTS ticket via the following URL - https://www.paypal-support.com/s/?language=en_US . Please ensure that you provide detailed information and error details when submitting the ticket.

 

Sincerely,

Kavya

PayPal MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

 

Login to Me Too

Amelia999
Contributor
Contributor

Thank you,

I may end up with additional RELATED questions, but your solution was 'step' one for me now.   I'll open up additional questions if needed.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.