• Resolved annaise

    (@annaise)


    The button is there. When pressed it says done but button just greys out. Item remains in basket and it doesn’t go to the next step (thank you page) and no money is deducted from bank account.

    Apple pay is enabled. Domains were added using the “register domain” button on the app. I don’t know what other step I’m missing.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @annaise

    Can you enable test mode so your site can be tested?

    Kind Regards

    Thread Starter annaise

    (@annaise)

    I’ve enabled it

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @annaise,

    Your site is back in live mode so I was unable to test a payment all the way. Do you have a staging site where your you can enable test mode?

    Kind Regards

    Thread Starter annaise

    (@annaise)

    I don’t have a staging site at the moement (deleted after every update..) but its back on test mode so it should be possible to test now! Sorry about that

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @annaise

    The issue is your server is failing the payment request with the following error:

    {
        "code": "rest_invalid_param",
        "message": "Invalid parameter(s): billing_address",
        "data": {
            "status": 400,
            "params": {
                "billing_address": "The provided state (TX) is not valid. Must be one of: DE-BW, DE-BY, DE-BE, DE-BB, DE-HB, DE-HH, DE-HE, DE-MV, DE-NI, DE-NW, DE-RP, DE-SL, DE-SN, DE-ST, DE-SH, DE-TH"
            },
            "details": {
                "billing_address": {
                    "code": "invalid_state",
                    "message": "The provided state (TX) is not valid. Must be one of: DE-BW, DE-BY, DE-BE, DE-BB, DE-HB, DE-HH, DE-HE, DE-MV, DE-NI, DE-NW, DE-RP, DE-SL, DE-SN, DE-ST, DE-SH, DE-TH",
                    "data": null
                }
            }
        }
    }

    It seems like what is happening is the WooCommerce cart block is merging the provided address with the default address, resulting in the billing state being included in the request.

    We’ll see if we can recreate on our development site.

    Kind Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    I am also seeing the following error coming from WooCommerce:

    {
        "code": "woocommerce_rest_invalid_address_country",
        "message": "Sorry, we do not allow orders from the provided country (DE)",
        "data": {
            "allowed_countries": [
                "AU",
                "CA",
                "NZ",
                "GB",
                "US"
            ],
            "status": 400
        }
    }

    Germany was used as the billing address. These aren’t errors that are being caused by the Stripe plugin. Within the WooCommerce settings you can configure which countries you accept orders from.

    Kind Regards

    Thread Starter annaise

    (@annaise)

    I’ve added it to list of countries that can be used as billing address. That should fix that error. Were you able to recreate it?

    Plugin Author Payment Plugins

    (@mrclayton)

    I’ve added it to list of countries that can be used as billing address.

    That seems to have resolved the issue.

    Were you able to recreate it?

    Not on our development site. But your update of the settings seems to have resolved the issue.

    Kind Regards

    Thread Starter annaise

    (@annaise)

    For some reason it is still unresolved on my end. Going through the Apple Pay pop-up just fills in the shipping information and the button greys out. It doesn’t go to order received page and no order is created.

    Are you selecting Apple Pay and it just goes straight to thank you order received page (like google pay does)?

    Edit: it works now. I just had to add a surname to my contact card and tick TOS the box. Thank you!

    • This reply was modified 10 months, 3 weeks ago by annaise.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Apple pay not working’ is closed to new replies.