#Dev2023

1 messages · Page 1 of 1 (latest)

wise tundraBOT
rugged egret
#

Hi
You probably need first to check with Shopify Support.

#

This channel is for Stripe API integrations question.

mossy cove
#

Yes already tried that

rugged egret
#

@mossy cove please let's keep talking in this thread first.

#

PLease delete your other messages from the main channel

mossy cove
#

but no help from their end

rugged egret
#

Thanks, there is one last message, could you please delete it too ?
<#dev-help message>

mossy cove
#

deleted

rugged egret
#

there is another one remaining, could you please delete it ?

mossy cove
#

done

rugged egret
#

Cool thanks.

#

Now regarding your Shopify/Stripe Issue

mossy cove
#

the problem is with this point

rugged egret
#

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

mossy cove
#

In order to generate token they need card details. But that is not possible from apple pay

rugged egret
#

They need just the token.

#

e.g. tok_1AgzvXGp4JCfxblBH7gs5kLB

mossy cove
#

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?
rugged egret
#

And no card details are needed there

rugged egret
mossy cove
#

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.

rugged egret
#

Are you seeing any error in your Stripe dashboard ?

mossy cove
rugged egret
#

yes so for Stripe Side, that's fine, you are able to get a token value ?

mossy cove
mossy cove
rugged egret
#

the API in step4, is a shopify endpoint and not Stripe endpoint.

mossy cove
#

In step 3 they say to attach a header with Stripe-Account: #{shopify_payments_account_id}

rugged egret
#

If you are using Stripe Connect.

mossy cove
#

so how can I do that? the endpoint is
POST /v1/tokens HTTPS/1.1
Host: api.stripe.com

#

Can that be the issue?

rugged egret
#

Just a moment the guide you are following isn't Apple Pay integration

mossy cove
#

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

rugged egret
mossy cove
#

Yes the said they have verified this on their end and all is fine with our setting

rugged egret
#

So why the order isn't created by their end? what is missing for them to create an order ?

mossy cove
#

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?

rugged egret
rugged egret
mossy cove
#

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."

rugged egret
#

Where are you seeing this note? can you share the link to Stripe documents please?

mossy cove
#

Its not on Stripe its on Shopify

#

there is a note just above step 3

rugged egret
#

That means you can send customer Id and not card token, if you have already tokenized the customer's card.

rugged egret
mossy cove
mossy cove
rugged egret
rugged egret
mossy cove
rugged egret
#

every property there is optional

mossy cove
#

Ok thanks

rugged egret
#

Happy to help!