Afterpay delivery options not provided, Square web payments SDK

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
    }
  ]
}

:waving_hand: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Square Developer
Invoices API
Build a Payment Integration and Take Payments Online

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

What’s your application ID? :slight_smile:

sandbox-sq0idb-9qIwj9D8SMSp1KHn_l5atQ

Hi Bryan, any updates for me?

Hey @liam_pixeldev! Are you including an afterpay_shippingcontactchanged callback? You can find an example here:
Afterpay/Clearpay Technical Reference

Thank you, wasnt returning properly.

1 Like