Support » Plugin: WooCommerce Stripe Payment Gateway » order_comments not sent with apple pay order

  • Resolved gregmud

    (@gregmud)


    We’ve implemented apple pay, but it doesn’t send the order_comments with Apple Pay orders. As far as I can see in the code it couldn’t work because in the stripe_payment_request.js file, where it compiles the data for the order, order_comments is set to ” (line 116 in that file).

    Am I missing something or is this an omission from the submitted data? I need to get it working as we use that field for customers to write gift messages.

    Thanks
    Greg

    • This topic was modified 2 years, 6 months ago by gregmud.
    • This topic was modified 2 years, 6 months ago by gregmud.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Martyn J. a11n

    (@martynmjones)

    Hey @gregmud,

    We’ve implemented apple pay, but it doesn’t send the order_comments with Apple Pay orders. As far as I can see in the code it couldn’t work because in the stripe_payment_request.js file, where it compiles the data for the order, order_comments is set to ” (line 116 in that file).

    You’re right that in the stripe_payment_request.js file the ‘order_comments’ value is blank when the data is posted. This is because the payment request button is a separate process from the regular checkout form.

    By default, if the payment request buttons are enabled on the checkout page there will be a break below the button that reads “Or” before the regular checkout form
    is displayed.

    This is because when the payment request modal window opens for either Google or Apple, the address and card details come from that browser pop up and there is no order notes section. The standard checkout fields do are not used in this process.

    I don’t believe you’ll be able to use the comments field on the checkout form the way you need with the payment request buttons.

    One option would be to use an extension such as Product Add-ons. With this, you could have customers write gift messages when they add the product to their cart. That would then be stored as item meta so would be included in the order when paid via payment request.

    I hope that helps!

    Kind regards,

    Thread Starter gregmud

    (@gregmud)

    Hmmm… In theory, if there’s something in the comments fields, it could be included though. It would make sense to because how else would people be able to add special delivery notes for example?

    I fully get the convenience but I feel like this is something that could be added quite easily and would add a lot of benefit to customers.

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    I fully get the convenience but I feel like this is something that could be added quite easily and would add a lot of benefit to customers.

    I agree. In this case I think it is simply a matter of “roadmap item, nobody has had time for it yet”.
    If you feel like tackling this, PR’s are welcome: https://github.com/woocommerce/woocommerce-gateway-stripe

    And it seems like this discussion in our ideas board: https://ideas.woocommerce.com/forums/133476-woocommerce/suggestions/34518661-apple-pay-payment-request-to-support-custom-field is related.

    Kind regards,

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @gregmud,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can reopen it again if you need be.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘order_comments not sent with apple pay order’ is closed to new replies.