• Resolved Jeremy

    (@jemo)


    My client has requested the addition of a questionnaire that, in the end, results in the order of a subscription. All of this takes place outside the normal checkout method. Currently, after all the data has been collected I am creating user (customer) for them and logging them in, creating the order with the gathered information, passing it to the Stripe gateway to “process_order” and then, upon success creating a subscription linked to the order. When I omit the gateway all of this works. I know how to apply the gateway to the order and pass the order to the gateway but I can’t figure out how to associate the credit card info to the order or customer so that it will be successful.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Elvira K. a11n

    (@treibalen)

    Hi there @jeremy,

    Sorry for the late reply!

    > Currently, after all the data has been collected I am creating user (customer) for them and logging them in, creating the order with the gathered information, passing it to the Stripe gateway to “process_order” and then, upon success creating a subscription linked to the order.

    Are you trying to integrate our Stripe gateway with your own subscriptions solution? Our plugin doesn’t have any hooks into the Stripe Subscriptions feature (if you’re after it) as described here – https://docs.woocommerce.com/document/stripe/#section-33

    It does work with WooCommerce Subscriptions plugin though which is a solution we can recommend instead.

    Cheers!

    Thread Starter Jeremy

    (@jemo)

    Thank you for responding,

    I think the problem originates more around applying a payment method to the transaction. I have all the CC and billing info by the time I get to the end of the “questionnaire” but applying that billing info to the order before submitting it to the Stripe payment gateway eludes me.

    If I hard code a successful response in there the order goes through correctly and the subscription is established. Getting an order to the Stripe gateway that includes that CC and billing info is where it falls apart for me. The customer, order totals, and order fees are all being sent though.

    Plugin Support Elvira K. a11n

    (@treibalen)

    Hi there @jemo,

    Sounds like you’re trying to create a custom generated order and then pass all that information to the Stripe gateway. Maybe you can take advantage of these hooks – https://docs.woocommerce.com/document/stripe/#section-13?

    This is a fairly complex development topic. I’m going to leave this thread open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the following places for more development-oriented questions:

    1. WooCommerce Slack Community: https://woocommerce.com/community-slack/
    2. Advanced WooCommerce group on Facebook: https://www.facebook.com/groups/advanced.woocommerce/
    Thread Starter Jeremy

    (@jemo)

    Thank you ma’am. It feels pretty complex indeed.

    Plugin Support Elvira K. a11n

    (@treibalen)

    Hi @jeremy,

    This thread was inactive for a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom checkout method and passing CC data to the payment gateway’ is closed to new replies.