Title: Shortcode available?
Last modified: April 21, 2019

---

# Shortcode available?

 *  Resolved [dkurth](https://wordpress.org/support/users/dkurth/)
 * (@dkurth)
 * [7 years ago](https://wordpress.org/support/topic/shortcode-available-10/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-available-10%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Dat Hoang](https://wordpress.org/support/users/htdat/)
 * (@htdat)
 * [7 years ago](https://wordpress.org/support/topic/shortcode-available-10/#post-11453124)
 * 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](https://docs.woocommerce.com/document/stripe/#section-13)
 *  Thread Starter [dkurth](https://wordpress.org/support/users/dkurth/)
 * (@dkurth)
 * [7 years ago](https://wordpress.org/support/topic/shortcode-available-10/#post-11454676)
 * 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](https://wordpress.org/support/users/dougaitken/)
 * (@dougaitken)
 * Automattic Happiness Engineer
 * [7 years ago](https://wordpress.org/support/topic/shortcode-available-10/#post-11454862)
 * Hey [@dkurth](https://wordpress.org/support/users/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/](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/](http://woocommerce.github.io/woocommerce-rest-api-docs/)
   but also this tutorial might help – [https://github.com/woocommerce/woocommerce/wiki/Payment-Token-API](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](https://woocommerce.com/customizations))
   for work like this.
 * Thanks,
    -  This reply was modified 7 years ago by [dougaitken](https://wordpress.org/support/users/dougaitken/).
      Reason: adding Payment Token API
 *  Plugin Support [dougaitken](https://wordpress.org/support/users/dougaitken/)
 * (@dougaitken)
 * Automattic Happiness Engineer
 * [7 years ago](https://wordpress.org/support/topic/shortcode-available-10/#post-11500646)
 * Hi again [@dkurth](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/woocommerce-gateway-stripe/assets/icon-256x256.png?rev=3177277)
 * [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [dougaitken](https://wordpress.org/support/users/dougaitken/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/shortcode-available-10/#post-11500646)
 * Status: resolved