#xfechx - Connect Payment Links

1 messages ยท Page 1 of 1 (latest)

lone blade
#

Hello ๐Ÿ‘‹
can you describe your question?

vocal delta
#

Hello

#

Yes - I would like to know where do I have to pass the application_fee parameter when creating the product or the price?

Also, I would like to know where to pass the interval and the required data for a subscription payment-link

lone blade
#

The application_fee parameter is not used on products or prices but on payments.

vocal delta
#

I am getting an error when sending the type parameter

#

req_xBvxroJMQCe6K8

#

'type' => 'recurring'

lone blade
#

The presence of the recurring hash is sufficient to tell the API that you are creating a recurring price.

vocal delta
#

Ok

#

thanks

#

Can you provide me the link for adding taxes to payment-links?

#

Also, with this payment-link, why is sepa not enabled?

#

I received an email today from the connect team, that my connected accounts can inherit platforms' payment methods...

lone blade
#

Payment Links are a very new feature and so support starts in a limited fashion. More features will be rolled out as they continue to be widely used.

vocal delta
#

hmmm I am not satisfiedd with that answer, I received an email from stripe today about it

#

so would like to dig in to why it is still not there

#

I get the options on the platform account though:

lone blade
#

Ah, my info was a bit out of date (we've got a lot of new things coming online all the time):

Stripe introduced support for more payment methods on January 25, 2022. Payment links created prior to this date only support card payments and wallets. Create a new link to enable more payment methods.

#

Instead of the links, could you share the request IDs of the API requests you used to create that link?

vocal delta
#

These payment links are created today

#

req_QrX4JWdMBaXP36

#

req_wjlkmV2q4w9kZC

lone blade
#

Did the second payment link display the SEPA debit payment method?

vocal delta
#

yes, one does the other one doesn't

#

can a payment-link be updated?

#

or a product or price

lone blade
#

Right, that's because SEPA requires EUR currency and the first payment link used a Price in AUD

vocal delta
#

even if I use EUR

#

i will send an example

lone blade
lone blade
#

Can you share the request you used to create it?

vocal delta
#

sure.

#

req_It7AAJOtxLF8bT

lone blade
#

xfechx - Connect Payment Links

vocal delta
#

with updating a payment-link..
which parameters can I pass to update? The API example only shows the active => true parameter.

#

Ah I see them

#

sorry

#

line items, etc

#

can I also update price and products?

lone blade
#

That isn't an option. You would need to create new Payment Links. A Payment Link is created from a Product + Price combination so changing them means a new Payment Link

vocal delta
#

ok, so for updating a payment link, i need to create a new product + price combo

muted fog
#

๐Ÿ‘‹ I'm hopping in since @lone blade has to head out soon - I'm looking into why only card is appearing in your payment link now

vocal delta
#

thanks

muted fog
#

I'm a bit baffled why sepa isn't showing up for you - sorry it's taking so long, still trying to get to the bottom of this

vocal delta
#

thanks

vocal delta
#

can I send you an image of an error I am getting, when trying to update the payment link?

muted fog
#

Yup - feel free!

vocal delta
#

i get this php error when trying to update payment link

#

Sorry I went there, but i did it in live mode by mistake

muted fog
#

What does the code that results in that error look like?

vocal delta
#

if(!empty($connect)){
$stripe_payment_link = $stripe->paymentLinks->update(
[
'line_items' => [['price' => $price->id, 'quantity' => 1]],
$application_fee_percent,
'allow_promotion_codes' => true,
'metadata' => array(
'Invoice'=>$post_id,
'Customer'=>$user->user_firstname . ' ' . $user->user_lastname,
'CustomerID'=>$user->id,
'Link'=>$permalink,
'Reference'=>get_the_title($post_id),
'Interval'=>$interval,
'Notes'=>$notes,
'Vendor' => $vendor_email,
'VendorID' => $author_id,
'Timestamp'=>$timestamp,
'API'=>$API,
'Affiliate'=>$affiliate_email,
'Tickets'=>$tickets,
'Test'=>$test_mode,
'CFDI'=>$facturapi
),
'after_completion' => [
'type' => 'redirect',
'redirect' => ['url' => get_bloginfo('url') . '/stripe/payment-successful/'],
],
],
$connected_account
);
}

muted fog
#

That's not how you update a Payment Link - the first parameter needs to be the ID of the payment link you want to update.

vocal delta
#

ahhh

#

sorry, yes

muted fog
#

๐Ÿ‘

#

And did you try changing the setting in test mode? That should allow your payment link to show payment method types other than card

vocal delta
#

Can I do this?

#

$stripe_payment_link = $stripe->paymentLinks->update($payment_link_id,
[
'line_items' => [['price' => $price->id, 'quantity' => 1]],
$application_fee_percent,
'allow_promotion_codes' => true,
'metadata' => array(
'Invoice'=>$post_id,
'Customer'=>$user->user_firstname . ' ' . $user->user_lastname,
'CustomerID'=>$user->id,
'Link'=>$permalink,
'Reference'=>get_the_title($post_id),
'Interval'=>$interval,
'Notes'=>$notes,
'Vendor' => $vendor_email,
'VendorID' => $author_id,
'Timestamp'=>$timestamp,
'API'=>$API,
'Affiliate'=>$affiliate_email,
'Tickets'=>$tickets,
'Test'=>$test_mode,
'CFDI'=>$facturapi
),
'after_completion' => [
'type' => 'redirect',
'redirect' => ['url' => get_bloginfo('url') . '/stripe/payment-successful/'],
],
],
$connected_account
);

#

I am not able to update the payment link

cosmic veldt
#

Do you have a failing request ID we can look at?

vocal delta
#

No , sorry - It doesn't even reach stripe cause I cannot see it in the logs

lethal venture
#

Hi there! Stepping in for @cosmic veldt as he had to step away. Give me a moment to get caught up.

#

What do you see in your server logs when you try to send that request?