Google Payments API expects a merchant ID from Stripe, but Stripe doesn't have that.

2,978 views
Skip to first unread message

sadelbrid

unread,
Oct 19, 2018, 3:01:22 PM10/19/18
to Stripe API Discussion
I'm trying to implement my transaction flow with the Google Payments API (for various reasons), and Stripe is listed as one of Google's accepted payment processors here. Here, the API requires a gateway merchant ID, which is "a unique merchant identifier provided by your gateway."  The problem is that Stripe doesn't provide a merchant ID, or anything like this (I've been told by support). How is Stripe listed as a Google-supported processor if they don't provide a way to link my Google Payments account to my Stripe account? Has anyone here used Google Payments API via Stripe successfully?

Thanks in advance.

Remi J.

unread,
Oct 19, 2018, 3:42:12 PM10/19/18
to api-d...@lists.stripe.com
Hello,

In general, we would recommend using the Payment Request button instead as it makes everything seamless for you and just works both for Google Pay and any other payment method in the browser.

If you want to integrate with Google's API directly though you still can and you don't need a merchant id. If you look at that section in their docs [1] you can see examples for multiple processors and Stripe is in the list under "More" and you will see that the example code is different:

"tokenizationSpecification": {
  "type": "PAYMENT_GATEWAY",
  "parameters": {
    "gateway": "stripe",
    "stripe:version": Stripe.version,
    "stripe:publishableKey": "YOUR_PUBLIC_STRIPE_KEY"
  }
}

I hope this helps!
Remi


On Fri, Oct 19, 2018 at 12:01 PM sadelbrid <sade...@gmail.com> wrote:
I'm trying to implement my transaction flow with the Google Payments API (for various reasons), and Stripe is listed as one of Google's accepted payment processors here. Here, the API requires a gateway merchant ID, which is "a unique merchant identifier provided by your gateway."  The problem is that Stripe doesn't provide a merchant ID, or anything like this (I've been told by support). How is Stripe listed as a Google-supported processor if they don't provide a way to link my Google Payments account to my Stripe account? Has anyone here used Google Payments API via Stripe successfully?

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at https://groups.google.com/a/lists.stripe.com/group/api-discuss/.

sadelbrid

unread,
Oct 19, 2018, 4:15:03 PM10/19/18
to Stripe API Discussion
This helps a bunch! I didn't notice that Google had examples for each gateway. Thanks so much.

Frederic Minot

unread,
Apr 19, 2021, 3:19:09 PM4/19/21
to Stripe API Discussion, re...@stripe.com
Hello,

we have to make the payment for a connected account, how can we pass the connected account id into this tokenizationSpecification?

Thank you
Frederic

Remi J.

unread,
Apr 19, 2021, 3:21:15 PM4/19/21
to Frederic Minot, Stripe API Discussion
Hello,

You need to do something custom in that case where you pass the API key and the connected account together in the parameter. It would look like this: 

"stripe:publishableKey": "pk_test_123/acct_123"

Best,
Remi
Reply all
Reply to author
Forward
0 new messages