#xfechx - Connect Payment Links
1 messages ยท Page 1 of 1 (latest)
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
The application_fee parameter is not used on products or prices but on payments.
And you can see how this parameter is applied to payment links right here: https://stripe.com/docs/connect/payment-links#collecting-fees
I am getting an error when sending the type parameter
req_xBvxroJMQCe6K8
'type' => 'recurring'
That is because type is not a parameter you can use when creating a Price. Here are the parameters you can pass:
https://stripe.com/docs/api/prices/create
The presence of the recurring hash is sufficient to tell the API that you are creating a recurring price.
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...
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.
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:
Well first let me circle back to an earlier question (re: taxes). Here is the information for that: https://stripe.com/docs/payments/payment-links#taxes
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?
Did the second payment link display the SEPA debit payment method?
yes, one does the other one doesn't
can a payment-link be updated?
or a product or price
Right, that's because SEPA requires EUR currency and the first payment link used a Price in AUD
And you can update a Payment Link using the API here: https://stripe.com/docs/api/payment_links/payment_links/update
Can you share the request you used to create it?
xfechx - Connect Payment Links
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?
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
ok, so for updating a payment link, i need to create a new product + price combo
๐ 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
thanks
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
thanks
can I send you an image of an error I am getting, when trying to update the payment link?
Yup - feel free!
Can you go to this page (https://dashboard.stripe.com/settings/payment_methods/connected_accounts) in your dashboard settings (make sure you're in test mode) and select "Allow connected accounts to customize..."
i get this php error when trying to update payment link
Sorry I went there, but i did it in live mode by mistake
What does the code that results in that error look like?
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
);
}
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.
๐
And did you try changing the setting in test mode? That should allow your payment link to show payment method types other than card
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
Do you have a failing request ID we can look at?
No , sorry - It doesn't even reach stripe cause I cannot see it in the logs