#smriti15s

1 messages · Page 1 of 1 (latest)

rose raptor
#

Hi checkout.session.async_payment_succeeded occurs when a payment intent using a delayed payment method finally succeeds. What payment method are you using?

elder lantern
#

Card

rose raptor
#

card is a immediate payment method, and that's why you receive checkout.session.completed instead of checkout.session.async_payment_succeeded

elder lantern
#

Yes, as per my understanding.
I used the card payment method and when the user submits the form checkout.session.completed will be triggered. and when the payment suceed, i was expecting checkout.session.async_payment_succeeded, this to be triggered. But instead payment_intent.succeded got triggered.

rose raptor
#

Yes, this is an expected behaviour, checkout.session.async_payment_succeeded is for delayed payment method, which card is not.

elder lantern
#

Okay Could you also help me with one issue? In test mode, while onboarding for a standard account, it requires actual login credentials. Why so? Do, onboarding of standard account needs existing stripe account?

rose raptor
#

A standard connect account is also a Stripe account. I don't think it's asking your Stripe login credentails during the onboarding process, it is more like creating a new Stripe Account.

elder lantern
#

On first scree, asked for email and on the next screen asking for password.

#

When I enter a new password, it says incorrect password.

#

acct_1KGemR4byZSYqr4y - this is the account id

rose raptor
#

Is this email same as your platform?

elder lantern
#

No

#

In test mode, I am entering random email

#

to create new stripe standard aaccount

rose raptor
#

This email address may be used by other user, can you try a different email address?

elder lantern
#

and Even though i passed through that step, in test mode does it acceps real number?

rose raptor
#

Do you see a button to skip this process?

elder lantern
#

No

#

Please check the screenshot. At top, its test mode but no button.

rose raptor
#

Do you see the Skip this form button when you first-time open the onboarding URL?

elder lantern
#

No

#

Attached screenshot

rose raptor
#

How do you generate this onboarding URL?

elder lantern
#

Created an account first:
account_id = Stripe::Account.create(type: 'standard').id

Stripe::AccountLink.create(
account: account_id,
refresh_url: base_url + "?payment_redirect=true",
return_url: base_url + "?payment_redirect=true",
type: 'account_onboarding'
)

rose raptor
#

Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details

elder lantern
#

acct_1K3xNBGPMeBm9QN3

rose raptor
#

Hi thanks for the sharing the ID. I just confirmed that you need to use the working email address and phone number to finish the onboarding process via account link, even for test connect accounts.

#

If you want to skip it, you can create a oauth onboarding URL from dashboard, which shows a Skip this form button in the beginning of the onboarding (see my previous screenshot)

elder lantern
#

Could you please provide oauth oboarding URL link or documentation?

rose raptor
elder lantern
#

Ok thanks