#Dev2023

1 messages · Page 1 of 1 (latest)

pseudo meteorBOT
azure tulip
#

Hi
Could you please share more details about your ask please? what guide are you following exactly ?

rancid yacht
#

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

azure tulip
#

Could you please describe the payment flow you want to implement from the begining ?

rancid yacht
#

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

#

?

azure tulip
#

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?

rancid yacht
#

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

#

?

azure tulip
#

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.

rancid yacht
#

paymentRequest.on('paymentmethod', ..) event what does this do?

azure tulip
rancid yacht
#

I want a token from stripe end not Shopify

pseudo meteorBOT
rancid yacht
#

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?

grand scroll
#

👋 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

rancid yacht
#

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

#

?

rancid yacht
#

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?

#

??

grand scroll
#

they explain it in step 3

#

you call the POST v1/tokens to Stripe with the card info

rancid yacht
#

Yes but I dont have the card info

grand scroll
grand scroll
rancid yacht
#

how can I generate token without card details?

#

But i can only get last 4 digits from the card number

grand scroll
#

that's not possible

rancid yacht
#

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?

grand scroll
#

that's not possible unfortunately

rancid yacht
#

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?

grand scroll
#

this is only for Connect Accounts

#

this doesn't work with Shopify

rancid yacht
#

I have a token from stripe apple pay, can I attach card to that token?

#

there should be a solution or a workaround right?

grand scroll
#

no not really

rancid yacht
#

Please any help with be appreciated, have been struglling to implement it since a month.

grand scroll
#

that's not really something we can help with. Tokens can only be created if you have the card info