• Resolved vinzwp

    (@vinzwp)


    Hi, I would like to create a woocommerce subscription from backend manually for my customer. We do have their card info in wordpress “Users” and Stripe. However we couldn’t proceed the payment. This is the error messsage I received.

    Recurring payment for order failed. Reason: You passed an empty string for ‘payment_method’. We assume empty values are an attempt to unset a parameter; however ‘payment_method’ cannot be unset. You should remove ‘payment_method’ from your request or supply a non-empty value.

    I believe so is because I leave the Payment Method Token field empty. How can I generate the Payment Method Token manually?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @vinzwp,

    This is standard WooCommerce Subscription functionality. On the edit subscription page within the WordPress admin, you can click the edit billing fields which will result in a payment method token field beig visible.

    You should copy and paste the customer’s payment method token into that field then save.

    Kind Regards,

    Thread Starter vinzwp

    (@vinzwp)

    Hi @mrclayton, thanks for your reply. Maybe my questions is not clear. I wanna ask how can get I the customer’s payment method token?

    Plugin Author Clayton R

    (@mrclayton)

    @vinzwp to get the customer’s payment method token navigate to tUsers > All Users page in the WordPress Admin and search for that customer.

    In their profile you will see their Stripe Customer ID. Now, login to stripe.com and search for that customer. You can then copy the payment method ID for the payment method you want associated with the subscription.

    Paste that payment method ID into the editable billing fields of the subscription that I mentioned in my prior reply.

    Kind Regards,

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

The topic ‘How to create Subscription Payment Method Token’ is closed to new replies.