Skip to main content

NewStore Checkout API (0)

Download OpenAPI specification:Download

Use this API to enable NewStore Checkout to pay for the cart created by an associate on NewStore Associate App. Customers can use NewStore Checkout to pay with their phones using an electronic wallet such as Apple Pay, Google Pay, or PayPal.

For more information on configuring Newstore Checkout as a payment method, see the documentation.

Get shopping cart

Returns the read-only shopping cart information that matches the specified shopping cart ID.

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

The cart ID of the shopping cart being paid.

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.

Important: You must create a session before you can initiate and process a payment.

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

The cart ID of the shopping cart being paid.

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

Initiates a payment process for the cart created by the associate in NewStore Associate App.

Important: Ensure that you create a payment session first.

The payment is authorized and possibly captured, depending on the configuration of PSP. To see how a PSP is integrated with the NewStore platform, see the integration guide.

The payment is then added to the cart in NewStore Associate App.

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

The cart ID of the shopping cart being paid.

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

Deprecated billing address field, only used by the old version of NSC.

metadata
object

Additional information about the payment to be sent to the provider

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": [
    ]
}