#aman.mohammed

1 messages ยท Page 1 of 1 (latest)

weak zodiacBOT
graceful cloud
#

Hi there!

#

Pasting your other message here:

Does anyone know if we can add a text field box or any other HTML control to the Payments Link page?

I dont think it is possible as I have looked at all the docs. It perhaps is possible if we use the Stripe API to build custom page.

Does anyone know if we can use any plugin (paid/free) to add a text field to the Payments Link page so that I can ask the customer to leave a note with the order

#

Where is this charge coming from? A Checkout Session, Subscription, Invoice, something else?

fair hatch
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

pseudo tangle
#

First question is simple.

  1. I have created a Payment Link for a product.
  2. The customer buys the product via the Payment Link
  3. I check the Stripe REST API and can find the charge made to the customer with details such as card used to pay, billing address etc.
  4. Which product did the customer buy? Can I find that information somewhere via the REST API by passing in the charge id

Second question is simpler.

  1. Does anyone know if we can add a text field box or any other HTML control to the Payments Link page?
  2. I want my customer to have the ability to add optional notes while buying the product via the payments link
fair hatch
#

are you listening to webhook events?

pseudo tangle
#

None, I have not added any webook event. There was no need for it in my use case. I have just used the stripe keys to connect to the REST API

fair hatch
#
  1. Which product did the customer buy? Can I find that information somewhere via the REST API by passing in the charge id
    This is called order fulfillment
#

Payment Links behave the same way as Checkout Sessions

#

when it comes to fulfilling orders

pseudo tangle
#

ok

#

is there a REST API endpoint for fulfilling the orders?

#

or the only way to fulfill is via a webhook?

fair hatch
#

webhook is your best way to handle this, because it is more resilient and relies on Stripe providing you the right "triggered" events

pseudo tangle
#

ok so clearly, there is no REST API endpoint to fulfill customer orders

#

๐Ÿ˜ฉ

#

and the only way is webhook

fair hatch
#

you can list all your checkout sessions and try to see whether you already fulfilled the order or not

#

there are thousands of ways of dealing with it

#

it boils down to choosing the right one

pseudo tangle
#

i agree and I want the simplest, which in my opinion is having a 1-1 relation between charge and product purchased. I am not sure going the checkout sessions route is any good, as it does not seem to have a direct relation. A charge ID should simply inform which product has been brought.

#

perhaps i will see how to use the webhook as that is only sensible to do. but i still think it is a much needed feature in a REST API

fair hatch
#

first of all you shouldn't rely on charges

#

Charges is an old API

pseudo tangle
#

๐Ÿค”

fair hatch
#

second of all Payment Intents (the new API that replaced Charges) only contains the amount and is not linked to a Product

pseudo tangle
fair hatch
#

I'm not seeing it's deprecated

#

I'm just saying it's an old API

pseudo tangle
#

ok, i see.

fair hatch
#

one that we don't recommend our users of using

pseudo tangle
#

got it

fair hatch
pseudo tangle
#

so in my case,

I have a 3rd party system which integrates with Stripe. I have stripe payments links on my public website. Customers buy, and i want that purchase to be shown in another system. It should show details of hte customer and the product purchased plus any other relevant details.

fair hatch
#

what is the 3rd party you're integrating with?

pseudo tangle
#

my own customer CRM

#

a web application

fair hatch
#

that doesn't give me any context what's so ever

#

is this a plugin or a e-commerce platform or what exactly

pseudo tangle
#

its just a custom node js application mate, using the REST API from Stripe

#

and showing orders

#

ecommerce backend system

fair hatch
#

then it's not a 3rd party that integrates with Stripe

#

in that case you can easily add the webhooks endpoint and fulfill the orders by listening to the checkout.session.complete events

pseudo tangle
#

ok, i will give that a try

#

i am sure it will work, but out of curiosity the REST API does not have a customer order detail object? isnt it?

#

also on my second question, is it possible to add a text field to the Payment Links ?

fair hatch
# pseudo tangle also on my second question, is it possible to add a text field to the Payment Li...

for this you need to contact support https://support.stripe.com/?contact=true we barely just launched a private beta for this, but they need to see whether you're eligible for the beta program before giving you access

fair hatch
#

but as I explained earlier all the products will be on the Checkout Session's line items

pseudo tangle
#

Thanks a lot for your help, really appreciate your time and patience with me.

fair hatch
#

no worries, let me know if you need any more help

pseudo tangle