#xfechx-connect

1 messages ยท Page 1 of 1 (latest)

glossy palm
#

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 ?

lapis locust
#

Thanks

glossy palm
#

Can you clarify what you are trying to achieve? You want to create a product on a connected account?

lapis locust
#

yes

#

would like to create a product on a connected account

glossy palm
lapis locust
#

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

clever kiln
#

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.

lapis locust
#

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?

clever kiln
amber marsh
#

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
#

thanks

#

wondering if there are any that I should be aware before upgrading?

amber marsh
#

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

amber marsh
#

Are you all set here @lapis locust ?

lapis locust
#

Thanks

#

Another question with payment links

fossil tide
#

Hello. Taking over for synthrider here. What is your question?

lapis locust
#

How can I expand stripe payment link so that I get the description from the product?

#

or the name

fossil tide
lapis locust
fossil tide
#

Did you create the link through the API?

#

Or from the dashboard?

fossil tide
#

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