#Nidhi

1 messages · Page 1 of 1 (latest)

shy basinBOT
ocean kiln
#

Hi there!

#

How can I help?

strange rose
#

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

ocean kiln
#

but can you plz let me know which flow I should follow ?
What do you mean? I'm not sure I understand your question.

strange rose
#

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

ocean kiln
#

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?

strange rose
#

I am doing it with laravel Cashier in my project.

$subscription = $user->newSubscription('default', $plan->stripe_id);

ocean kiln
#

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?

strange rose
#

yes I have enabled wechat_pay

ocean kiln
#

Are you using the Payment Element to collect the payment information?

strange rose
#

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 am not sure which Flow I should follow !

ocean kiln
shy basinBOT
snow wing
#

Hey! Taking over for my colleague. Let me catch up.

strange rose
#

how to create subscription using wechat_pay ?

snow wing
#

You can't use wechat_pay with Subscirption.

strange rose
#

then How can I use wechat_pay ?

snow wing
#

You can use wechat just for one time payments

strange rose
#

using \Stripe\Checkout\Session ?

snow wing
#

yes you can, for one time payment and not Subscription payments