#iwynos_adi

1 messages · Page 1 of 1 (latest)

elder fiberBOT
vital spear
#

Hello! What's the issue?

rocky crystal
#

This what I see after an invoice payment

#

I want something like the redirections after an succefull and unsuccessfull payments

#

Like a onetime-checkout model

vital spear
#

I don't believe that's an option, but let me confirm...

#

Yep, as far as I can tell that's not an option with the hosted Invoice payment page.

#

I can flag it as a feature request if you want?

rocky crystal
#

Are there any other way where, I can create an subscription and after payment customer comes back to my webpage again

sudden rock
#

We basically want the customer to come back to our store after making the payment for the subscription

#

And you to tell us via a callback or other means that payment was received for the subscription so we can proceed to next steps

vital spear
#

There is no way to redirect to your site after a successful Invoice payment on our hosted Invoice page. We do send webhooks for successful payments though, so that second part can be handled that way.

rocky crystal
#

what are the alternative to hosted invoice page

vital spear
#

You can build your own custom page to pay Invoices.

#

For example, you can use the Payment Element to confirm the Invoice's Payment Intent.

rocky crystal
#

Can you guide as to a link with examples

sudden rock
#

Maybe we will try with that approach. Provide any links you have that can guide us on that approach

rocky crystal
#

How can i get to payment_intent_client_secret

vital spear
#

The Invoice will have a payment_intent property, and that Payment Intent will have a client_secret.

rocky crystal
#

I got the payment intent but how do I expand it

#
 $stripe->subscriptions->retrieve(
            $payment_intent,
            ['expand' => ['payment_intent']]
          );
vital spear
#

That's a Subscription, not an Invoice.

#

Subscriptions create Invoices, and Invoices have Payment Intents.