#xfechx-connect
1 messages ยท Page 1 of 1 (latest)
Hi! I'm pasting your question in the thread:
I have a question regarding stripe connect
do I need to pass the connected account array when calling the stripe object?
$stripe = new \Stripe\StripeClient($secret_key);
Or can I just get the stripe object, and then on the next function (i.e $stripe->products->create(.... ], [stripe_account => $connect]
call the connected account until then ?
Thanks
Can you clarify what you are trying to achieve? You want to create a product on a connected account?
Then you would use your the platform API keys, and pass the Stripe-Account header of the Connected account: https://stripe.com/docs/connect/authentication
yes, i know how to do that, but wondering if I need to pass the stripe account header on calling the stripe object
using this new nomenclature of stripe objects
Hi there ๐ jumping in. No, you don't need to specify the connected account when first initializing Stripe, instead that is passed on a per-request basis.
thanks @clever kiln
I have another question
I am getting an error:
Uncaught Error: Call to a member function create() on null
when creating a payment link..
I have successfully created price and product before
I pass the price id:
price_1KWiMDGZgYEIO0k5xWhLNLSp
Do I need to update my php stripe libraries?
Possibly, Payment Link APIs are pretty new and were introduced to the PHP library in version 7.111.0
https://github.com/stripe/stripe-php/releases/tag/v7.111.0
Hey @lapis locust I've re-opened this thread
From main:
xfechx โ Today at 11:17 AM
@clever kiln are there any breaking changes if I upgrade?
@lapis locust it depends on the version you're using today. You need to review the changelog from your current version to determine any impact for your integration:
https://github.com/stripe/stripe-php/blob/master/CHANGELOG.md#71110---2022-01-20
if you're already on a 7.x version, upgrading to 7.111 would not be expected to include any breaking changes
It looks like you're on 7.97 currently, so that should be safe
Are you all set here @lapis locust ?
Hello. Taking over for synthrider here. What is your question?
How can I expand stripe payment link so that I get the description from the product?
or the name
What do you mean by expand the payment link? Are you trying to expand some api fields: https://stripe.com/docs/api/expanding_objects?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Also, just following up about this, it looks like your product name is "Paymentlink No. 4497 [Demo]" and the description is "This is a demo" so those are included on the page