#jmartinez-pass-user-info

1 messages ยท Page 1 of 1 (latest)

thorn mist
#

Hello ๐Ÿ‘‹
what fields are you trying to include?

If Stripe's customer object supports it then you can pass it as key-value pair while creating the customer

If not, you can use metadata to hold on to those additional fields https://stripe.com/docs/api/customers/create?lang=node

severe niche
#

I am trying to pass a token, do I have to do it inside custom_fields or is it somewhere else?

thorn mist
#

what do you mean by token? what is the use-case here? Can you provide examples?

severe niche
#

A token will be 16 characters which will be letters and numbers, e.g. 25GF1S3DFS6FD4S9

thorn mist
severe niche
#

The token is for you to know what discount you have to give to the user, so we need to pass it on to you

thorn mist
#

Okay wait hold on, let's step back for a moment as this is getting confusing.
Is this token a promotion code created on Stripe?

severe niche
#

It is not yet created, because we are testing, but it will be created

thorn mist
severe niche
#

Yes, that field works for me, but then you are going to send the information to our SAP system, would the promotion code field be sent?

thorn mist
#

You mean via the webhook?

severe niche
#

Yes, webhook or SAP makes an API call

thorn mist
#

yeah the customer will have a discount object on them on which you can expand to get the promotion_code

https://stripe.com/docs/api/customers/object?lang=node#customer_object-discount
https://stripe.com/docs/api/discounts/object?lang=node

severe niche
#

ok and another thing

#

The user registers in our systems and we send you the data, how do you send this data to SAP?

thorn mist
#

I'm not sure as this would depend on your SAP system but your development team should be able to implement webhooks to receive real time updates
https://stripe.com/docs/webhooks

If not, you'd need to poll the API to retrieve relevant information

severe niche
#

Ok, if not, you can also ask for the cleintes data every X amount of time every day, can't you?

topaz crow
#

Hi @severe niche, really sorry -- I missed this follow up!

#

Do you still have an outstanding question here?