• Hello,

    We recently came across the issue with GooglePay and ApplePay payments when tokenization attempted on the customer’s card.

    One of our customers is using square and our one-click upsells plugin, in one click upsell plugin we run create_token() to tokenize the user but in the case of digital wallets, the call fails with this response.

    03-07-2021 @ 20:53:42 - Request
    method:
    uri: createCustomerCardWithHttpInfo/A73PQYJN48RC36Q5R234TFAFKM
    user-agent: WooCommerce-Square/2.3.4 (WooCommerce/5.0.0; WordPress/5.6.2)
    headers: Array
    (
    )
    body: {
        "card_nonce": "cnon:CBESEHC-U3EKDEU6F7rOpGTLiMA",
        "billing_address": {
            "address_line_1": "908 Hilltop Drive",
            "address_line_2": "",
            "locality": "Walpole",
            "administrative_district_level_1": "MA",
            "postal_code": "02081",
            "country": "US",
            "first_name": "Selwyn",
            "last_name": "D Bodley",
            "organization": ""
        },
        "cardholder_name": "Selwyn D Bodley"
    }
    duration: 0.45511s
    
    03-07-2021 @ 20:53:42 - Response
    code: 400
    message:
    headers: Array
    (
        [0] => HTTP/1.1 400 Bad Request
        [Content-Type] => application/json
        [Square-Version] => 2019-08-14
        [Vary] => Origin, Accept-Encoding
        [X-Content-Type-Options] => nosniff
        [X-Download-Options] => noopen
        [X-Frame-Options] => SAMEORIGIN
        [X-Permitted-Cross-Domain-Policies] => none
        [X-Xss-Protection] => 1; mode=block
        [Date] => Mon, 08 Mar 2021 01:53:42 GMT
        [Content-Length] => 160
        [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload
    )
    body: Array
    (
        [errors] => Array
            (
                [0] => stdClass Object
                    (
                        [category] => PAYMENT_METHOD_ERROR
                        [code] => UNSUPPORTED_ENTRY_METHOD
                        [detail] => CustomerCard cannot be created with nonce generated by Google Pay.
                    )
    
            )
    
    )

    Could you explain what this message exactly means?
    If Digital wallets don't support tokenizations then how these methods are compatible with WooCommerce subscriptions?

    We have also unable to find any order meta or session flag which could tell us that this payment is made using digital wallets so that woofunnels could prevent tokenization in this case.
    Let me know if we can add order meta before we start processing payment through digital wallets.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @teamwoofunnels – I’m sorry for the trouble, but Square’s digital payment options indeed do not support tokenization.

    We’re currently in the process of merging and releasing a fix that would hide these digital payment options for both subscription products and carts.

    Hi @jricketts4,
    Thanks for the update.
    Could you please consider adding an order meta while processing digital wallets so that we could prevent running upsells for these orders?

    Thanks

    Hi @teamwoofunnels,

    When the fix is pushed out, it will remove any Google/Apple Pay options. When this is pushed through, they will be hidden period when any Subscriptions or recurring items are added to the Cart/shown. This should satisfy the requirement for upsells as well ??

    I will mark this thread as resolved, but if you have further questions please let us know!

    Hi @nixiack8

    Thank you for your response.

    Kindly consider adding a meta for the payment options which user exercised.

    In general, this meta could help in troubleshooting whenever need arises.

    For one click upsells:

    A lot of folks are trying to upsell a subscription product, to try and convert buyers to subscribers when they buy a simple product.

    In this specific case , we would detect the meta and skip the upsell process for digital wallets.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘UNSUPPORTED_ENTRY_METHOD Error during tokenization’ is closed to new replies.