#Dev2023
1 messages · Page 1 of 1 (latest)
Hi
Could you please share more details about your ask please? what guide are you following exactly ?
I dont have card details as I am using Apple pay, but I have customer_id and card attached to it
I want to generate a token
So how can I do that?
hello
Could you please describe the payment flow you want to implement from the begining ?
Sure
I am using stripes payment request button for apple pay, link, gpay
From there user can select any option and then I want to generate a token for the wallet and send it for payment on server
So I create or get customer id and there is also a card attached to the customer id
Now I want to generate a token form customer id
how can I do that? I dont get card info from apple pay So i can't create token from
card: {
number: '4242424242424242',
exp_month: 12,
exp_year: 2019,
cvc: 123
}
I have customer object from where i can get customer_id and card_id
can I generate token using this data?
hello you there
?
yes I'm monitoring your thread
So I create or get customer id and there is also a card attached to the customer id
Now I want to generate a token form customer id
I'm not understanding this part. Why you need to gerenate a token?
You can directly complete the payment:
https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-complete-payment
I dont want to complete the payment, I want to generate a token and send it to shopify
the will process the payment
I just want a token which the can use to charge
?
We don't a lot about Shopify here unfortunately, but when you use Stripe request button you have the PaymentMethod id from the paymentRequest.on('paymentmethod', ..) event, check with Shopify how you can use it.
paymentRequest.on('paymentmethod', ..) event what does this do?
Check the guide I shared with you previsouly, in order to understand the flow/use of Stripe RequestButton:
https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-complete-payment
I want a token from stripe end not Shopify
I have a customer id and there is also a card attached to the customer id, I want to generate a token how can I do that?
👋 taking over for my colleague. Let me catch up.
I'm not sure whether using Stripe to tokenize the card info works with Shopify
this is more a question to be asked to the Shopify team
step 3 says "If you've already tokenized the customer's credit card and created a customer in your Stripe platform account, then you can send the customer id from your platform account instead of sending the card information."
How can I send the customer id from my platform account instead of sending the card information to Stripe
?
Shopify needs a stripe token to process the payment
which they use in step 4
I have a customer id and there is also a card attached to the customer id, I want to generate a token how can I do that?
??
Yes but I dont have the card info
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
you need to collect them from your customer
how can I generate token without card details?
But i can only get last 4 digits from the card number
that's not possible
and I also dont get get cvc
yes thats why I am asking how can i generate a token with customer object?
or from card object?
that's not possible unfortunately
When you’re ready to create a charge on a connected account using a customer saved on your platform account, create a new token for that purpose. You’ll need:
The Stripe account ID of the connected account (for example, acct_5yPYNYJ43hKtLonc) that you’re creating the charge for
The ID of the customer in your platform account (for example, cus_342eqT7PVXAzrm) being charged
The card or bank account ID for that customer, if you want to charge a specific card or bank account rather than the default
What does this mean
It says we can pass customer_id to generate token right?
I have a token from stripe apple pay, can I attach card to that token?
there should be a solution or a workaround right?
no not really
Please any help with be appreciated, have been struglling to implement it since a month.
that's not really something we can help with. Tokens can only be created if you have the card info