• Resolved dkurth

    (@dkurth)


    Bit of an unusual request. I have written my own plugin and it interfaces with woocommerce and the stripe payments using call backs. BUT, now I have a situation, where I need to make it easier on the user in their profile.

    They are claiming a listing on the site and now want to pay for it, as to make modifications. Because of this, I would like to use the stripe payment gateway and need three items:

    1. Be able to look up if they already have a payment method available.
    2. If no payment method, put up the stripe form for credit card entry

    3. Process the order — this i can do via the php code I have written to create a order and using the login information.

    The question is, is there a PHP call (direct) in which I can show the payment form in the profile area and still be able to grab the information to process the order?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    I am not able to reply to your question directly. However, you can have a look at all available hooks here and research a bit for yourself:

    * https://docs.woocommerce.com/document/stripe/#section-13

    Thread Starter dkurth

    (@dkurth)

    Yes, I know about all of these. But they are post-event call backs. This is a proactive initial display I am asking about. Thank you for trying.

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @dkurth

    This falls outside our scope of support but all the available Action and Filter hooks are listed in the support documentation.

    > 1. Be able to look up if they already have a payment method available.

    This would be a WooCommerce core piece of code to check. You might find this useful – https://docs.woocommerce.com/document/payment-gateway-api/

    > 2. If no payment method, put up the stripe form for credit card entry

    This would be a logic piece combined with one, but usually if the customer has a card saved with a Stripe token, this is useful to show

    > 3. Process the order — this i can do via the php code I have written to create a order and using the login information.

    Overall, it might be possible to use the WooCommerce REST API – http://woocommerce.github.io/woocommerce-rest-api-docs/ but also this tutorial might help – https://github.com/woocommerce/woocommerce/wiki/Payment-Token-API

    We highly recommend contacting one of the services on our Customizations page ( https://woocommerce.com/customizations ) for work like this.

    Thanks,

    • This reply was modified 7 years ago by dougaitken. Reason: adding Payment Token API
    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi again @dkurth

    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 start a new thread.

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Shortcode available?’ is closed to new replies.