#Dev2023
1 messages · Page 1 of 1 (latest)
Hi
You probably need first to check with Shopify Support.
This channel is for Stripe API integrations question.
Yes already tried that
@mossy cove please let's keep talking in this thread first.
PLease delete your other messages from the main channel
but no help from their end
Thanks, there is one last message, could you please delete it too ?
<#dev-help message>
deleted
there is another one remaining, could you please delete it ?
done
https://shopify.dev/docs/apps/channels/checkout-api/complete-stripe#step-4-send-the-token-to-shopify here is the link for integration I have followed
the problem is with this point
This channel is only for Stripe API questions, we don't know much about Shopify unfortunately here. But let's see if there is an issue on Stripe side
In order to generate token they need card details. But that is not possible from apple pay
so I used / Get the token for card details
paymentRequest.on('token', function(event) {
// event.token is available
console.log(event.token);
}); Is this correct way to get apple pay token for send it to server?
And no card details are needed there
yes it should be.
Then I send this token to step 4 on that link
but no order is generated on their store
SO reached out Shopify dev team they said they will not be able to help
They said everything is fine on their end
There is a note on step 2 which says Note
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.
if the order wasn't created, then I would say the problem at Shopify side.
Are you seeing any error in your Stripe dashboard ?
Yes I send them the token using
paymentRequest.on('token', function(event) {
// event.token is available
});
yes so for Stripe Side, that's fine, you are able to get a token value ?
Their dev team check and said there is no issue on their side
Yes I get a token which starts with tok_
Well, I'm not sure about this. as the order creation is made on Shopify side and not Stripe side. I'm not seeing why the issue could be on Stripe side
the API in step4, is a shopify endpoint and not Stripe endpoint.
In step 3 they say to attach a header with Stripe-Account: #{shopify_payments_account_id}
If you are using Stripe Connect.
so how can I do that? the endpoint is
POST /v1/tokens HTTPS/1.1
Host: api.stripe.com
Can that be the issue?
Just a moment the guide you are following isn't Apple Pay integration
You should be using Shopify Apple Pay integration directly:
https://help.shopify.com/en/manual/payments/accelerated-checkouts/apple-pay
We have a sales channel and that link is not for sales channel
It is setting to enable apple pay which is already enabled on the store
We are able to process the payment via creadit card. Now we want the payment to also accept apple pay
I see, but that's how Shopify supports Apple Pay.
Yes the said they have verified this on their end and all is fine with our setting
So why the order isn't created by their end? what is missing for them to create an order ?
They said everything is ok on their end. I don't know what is going wrong and on whose end? This integration is very basic and that will help us generate revenue
Can we set up dev call so i can show you the integration?
if every thing is working fine, so why the order isn't being created? what is missing? you can ask them this simple question.
no we don't provide that.
Yes had a conversation with them regarding same. they said all is fine on their end
Ok can you tell me what this means as this is related to stripe API
"Note
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."
Where are you seeing this note? can you share the link to Stripe documents please?
Its not on Stripe its on Shopify
there is a note just above step 3
That means you can send customer Id and not card token, if you have already tokenized the customer's card.
I'm sorry, but I'm not sure we can help you further on Stripe Side, without knowing what's missing for Shopify in order to create an order. Replying with "every think is working fine" isn't enough. You/They need to provide what is missing in order to create an order on Shopify side.
Ok so instead of tok_ I can send the customer id from stripe right?
Yes but for every question asked they say the same its very annoying for us too. But still will try contacting them again
It's not clear in their documentation.
then you can send the customer id from your platform account instead of sending the card information.
where you can send the customerId? I'm sorry, this isn't Stripe official documentations.
You need to get an answer from them and know why the order isn't being created and what is missing.
Ok thanks. Just one more query Can I create customer with only the email id on stripe and get customer id?
Yeap, you can even create a Stripe Customer Object with no info:
https://stripe.com/docs/api/customers/create
every property there is optional
Ok thanks
Happy to help!