#sarox85
1 messages · Page 1 of 1 (latest)
thanks work
Now I create a module for "subscriptions integration" and work, but can I add here application_fee_percent?
not sure what you're asking, did you have some specific code where you tried to pass it and it didn't work?
no, my code work. I managed to integrate the possibility of subscribing into a page
now I need using direct charge for this subscriptions
I see, and what was your question exactly?
how integrate direct charge in a subscriptions
in specific in a stripe->checkout->sessions->create
you use Stripe-Account to create the CheckoutSession on the connected account(https://stripe.com/docs/connect/authentication#stripe-account-header) and pass line_items containing a Price object also created on the connected account and mode:subscription
$checkout_session = $stripe->checkout->sessions->create([
'line_items' => [[
'price' => $_POST['priceId'],
'quantity' => 1,
]],
yes
'mode' => 'subscription',
What's not working as you expect? Seems you're missing a few parameters my colleague shared above
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-application_fee_percent is the parameter to use
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok, what kind of Connect payments? Direct?
Then you need to use the Stripe-Account parameter with your API request as explained here
where sorry?
It's explained at the link in the message
oh ok sorry
Hi! I'm taking over from my colleague. Please, let me know if you have any other questions.