#Nidhi
1 messages · Page 1 of 1 (latest)
Hi
actually I want to integrate wechat pay in my project
I have inabled that from portal
but can you plz let me know which flow I should follow ?
I want subscription based wechat_pay to match existing functionality
but can you plz let me know which flow I should follow ?
What do you mean? I'm not sure I understand your question.
I have existing card based subscription flow set in my project.
Now I want to add wechat_pay for payment. so which flow I should follow to purchase subscription by users ?
$subscription = $user->newSubscription('default', $plan->stripe_id);
$subscription = $subscription->withMetadata(array_merge(WallySmarter::commonStripeMeta($user), $validatedData['address']['description']))->create();
This is what I am doing for Card payment. No I want to add wechat_pay option for payment
I have existing card based subscription flow set in my project.
can you clarify how you are currenctly creating the subscriptions? Checkout Session, Subscription endpoint, something else?
I am doing it with laravel Cashier in my project.
$subscription = $user->newSubscription('default', $plan->stripe_id);
Unfortunately we are not familiar with laravel cashier here. What have you tried so far? Did you enable the new payment method on the dashboard?
yes I have enabled wechat_pay
Are you using the Payment Element to collect the payment information?
I have added defaultPayment method for user and using createSource and then on payment time I use that only for auto pay !
can U suggest flow for wechat_pay ? I just want to use my prices whoch I have added in my stripe account
I have tried creating new subscription using https://api.stripe.com/v1/subscriptions
But it gives me - Payment methods of type wechat_pay cannot be set as a default payment method.
I am not sure which Flow I should follow !
Can you share the request ID (req_xxx)? You can find it here https://dashboard.stripe.com/test/logs
Hey! Taking over for my colleague. Let me catch up.
Wechat_pay
how to create subscription using wechat_pay ?
You can't use wechat_pay with Subscirption.
Wechat pay can't be used with SetuipIntent or set up for future usages:
https://stripe.com/docs/payments/payment-methods/integration-options#additional-api-wallets
then How can I use wechat_pay ?
using \Stripe\Checkout\Session ?
yes you can, for one time payment and not Subscription payments