Skip to main content

NewStore Checkout API (0)

Download OpenAPI specification:Download

Use this API to pay with customer phone (ApplePay) for the cart created by the associate .

Get Shopping Cart

Returns read-only shopping cart information matching the given identifier.

path Parameters
cart_token
required
string (Cart token)
Example: 7e44748c-5a6d-4b7a-b705-9b5711e47777

Represents a token that you can use in the context of NewStore Checkout.

Responses

Response samples

Content type
application/json
{
  • "cart": {
    },
  • "configuration": {
    }
}

Create payment session

Creates a session on a digital wallet for the cart to be checked out. You require a session to initiate a payment.

path Parameters
cart_token
required
string (Cart token)
Example: 7e44748c-5a6d-4b7a-b705-9b5711e47777

Represents a token that you can use in the context of NewStore Checkout.

Request Body schema: application/json
payment_wallet
required
string
Enum: "APPLE_PAY" "PAYPAL"

Source of the payment. Example: APPLE_PAY.

Responses

Request samples

Content type
application/json
{
  • "payment_wallet": "APPLE_PAY"
}

Response samples

Content type
application/json
{
  • "merchantSessionIdentifier": "SSH0B04032167A04B0BA994927C24",
  • "epochTimestamp": 1560946702269,
  • "merchantIdentifier": "6962377928D9A9E689AD95BF65",
  • "signature": "308006092a8643d049c000000000000",
  • "displayName": "",
  • "domainName": "newstorecheckout.example.com",
  • "nonce": "e3beeae6",
  • "expiresAt": 1560950302269
}

Process payment

Triggers a payment process for the cart. Make sure you created a session first.

The payment will be authorized (and possibly captured depending on the PSP configuration) and then it will be added to the cart.

path Parameters
cart_token
required
string (Cart token)
Example: 7e44748c-5a6d-4b7a-b705-9b5711e47777

Represents a token that you can use in the context of NewStore Checkout.

Request Body schema: application/json
payment_token
required
string

Token which represents the right to perform payment.

payment_provider
required
string
Value: "ADYEN"

The payment service provider. Example: ADYEN.

payment_wallet
required
string
Enum: "APPLE_PAY" "DIRECT" "GOOGLE_PAY" "PAYPAL"

Source of the payment. Example: APPLE_PAY.

amount
required
number

The amount that needs to be paid.

currency
required
string

The currency code in ISO-4217 format.

object
object

Responses

Request samples

Content type
application/json
{
  • "amount": 25.22,
  • "currency": "USD",
  • "payment_token": "A-PAYMENT-TOKEN",
  • "payment_provider": "ADYEN",
  • "payment_wallet": "APPLE_PAY"
}

Response samples

Content type
application/json
{
  • "request_id": "XXX-YYYY-ZZZZ-XYZ-XYZ",
  • "messages": [
    ]
}