Closed adrian-schnell closed 8 months ago
You can use payment links to generate subscriptions or one off payments for both direct and destination charges.
There isn't code baked into the plugin for this for now, as the focus was API led approach with direct frontend collection of payment method using StripeJS. However I can add this in if you require it.
If you don't want to wait, you can surface the stripe client and make requests directly to the stripe API using the Cashier::stripe() facade method.
Like so: (I think?)
Cashier::stripe()->paymentLinks()->create();
Cashier::stripe()->paymentLinks()->create();
thanks I'll give it a try @l4nos
@adrian-schnell I've since added in direct support for this. It's going out on the current release 1.12.1.
Please give it a try and let me know if it works for you. You can create both direct and destination payment links as well as some utility functions for updating links and retrieving the ones that sit directly within a connected account. (Direct Links)
I'd like to use the Stripe payment links whats the best practice to get this plugin work with this flow?
Is it necessary to create the subscription after a successful payment manually or does it work with webhooks?