Quantcast
Channel: Square Developer Forums - Latest topics
Viewing all articles
Browse latest Browse all 1326

Afterpay delivery options not provided, Square web payments SDK

$
0
0

Hello, i am having trouble setting up afterpay within the Square webpayments SDK.
Receiving this message when opening up the Afterpay payments dialog.

Seems related to an issue here:

But is there something that needs to be included in the paymentRequest?
E.g. this is my current payment request.

{
  "requestShippingAddress": true,
  "requestShippingContact": true,
  "requestEmailAddress": true,
  "requestBillingContact": true,
  "countryCode": "AU",
  "currencyCode": "AUD",
  "shippingOptions": [
    {
      "id": "flat_rate:1",
      "label": "Flat rate",
      "amount": "15.00"
    },
    {
      "id": "free_shipping:2",
      "label": "Free shipping",
      "amount": "0.00"
    }
  ],
  "total": {
    "label": "squarewoosync (via WooCommerce)",
    "amount": "33.00",
    "pending": false
  },
  "lineItems": [
    {
      "label": "Cabernet Sauvignon from Argentina (1L)",
      "amount": "15.00",
      "pending": false
    },
    {
      "label": "Shipping",
      "amount": "15.00",
      "pending": false
    },
    {
      "label": "Tax",
      "amount": "3.00",
      "pending": false
    }
  ]
}

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1326

Trending Articles