Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "sdk-sales/src/sdk/finalizePayment"

Index

Functions

Functions

finalizePayment

  • Parameters

    • orderNumber: string
    • paymentMethodID: number
    • token: string
    • Optional options: FinalizePaymentOptions
    • Optional recaptchaToken: undefined | string

    Returns Promise<APIErrorResponse | CreateOrderResponse>

    Promise resolving to one of the following:

    On success (resolves)
    
    {
     "total": 0,
     "subtotal": 0,
     "tax": 0,
     "shipping": 0,
     "items": [
       {
         "sku": "string",
         "quantity": 0,
         "shortDescription": "string",
         "name": "string",
         "price": 0,
         "tax": 0,
         "subtotal": 0,
         "total": 0,
         "priceCode": "string"
       }
     ],
     "currency": "string",
     "orderNumber": "1",
     "status": "1",
     "email": "1",
     "phone": "1",
     "subscriptionIDs": "1",
     "firstName": "Joe",
     "lastName": "Jones",
     "secondLastName": "Jones",
     "orderDateUTC": "1543410193000"
    }
    
    On error (throws)
    See documentation for corresponding error codes:
    https://redirector.arcpublishing.com/alc/docs/swagger/?url=./arc-products/arc-sales.json#/Checkout_Interaction/finalizePayment