How AI Agents Pay: Checkout in ChatGPT and Google AI Mode — Sam Parsons, PayPal

AI Engineer · 14 min · 182 sentences · from YouTube's caption track

Each timecode opens YouTube at the start of that sentence. Line anchors (#s42) are the cue ids in the WebVTT, and every line carries its start and end seconds. All transcripts has every talk, and the whole corpus as one file.

  1. 00:01[music]
  2. 00:12Okay.
  3. 00:13So, I'm going to talk to you about aentic commerce um with PayPal enterprise payments.
  4. 00:18So, this is about how do we accept payments from agents kind of maybe a human in the loop, maybe not um for merchants.
  5. 00:27So, I'm from PayPal.
  6. 00:29Um, and I work on our Aente Commerce area.
  7. 00:33Um, my name is Sam Parsons, senior staff engineer here.
  8. 00:37Um, so first of all, you may have heard of Brainree before and Brainree is PayPal's large enterprise payments.
  9. 00:44Was that Brainree Heart?
  10. 00:47Brainree.
  11. 00:48Yes.
  12. 00:49Uh, so but now it's PayPal enterprise payments.
  13. 00:51So I'm going to say PayPal enterprise payments, but if you know it as Brainree, uh, it's the same thing.
  14. 00:56So, we handle payments for really large corporations.
  15. 00:59You know, think of the biggest ones that you can think of.
  16. 01:02Huge volume, huge scale.
  17. 01:04So, what we're going to talk about here is a couple of things, three different paths.
  18. 01:09And really, the the key takeaway that I want you to have is that PayPal Enterprise Payments is building the bridges for merchants to be able to accept payments from many different places.
  19. 01:19And so, I'm going to give you a flavor of some of them, but really this this is in a fast evolving area.
  20. 01:24that you're going to see way more um over the coming months and and year.
  21. 01:28So, first of all, we're going to talk about a genic commerce protocol.
  22. 01:33So, this is uh OpenAI has created that and that'll be in chat GPT.
  23. 01:38You can use this universal commerce protocol.
  24. 01:42Google partnered with some others and created that protocol and these are very similar.
  25. 01:46So, if you go look at the specs, you're going to find out, oh, they are almost identical.
  26. 01:50Um, and again, you know, we're we're kind of early days here, but also we're going to demo for you another path towards accepting agentic payments, human in the loop using just MCP apps and and external checkout.
  27. 02:03Okay, so let's dive in.
  28. 02:06Um, so first of all, this is instant checkout and chat GPT using aentic commerce protocol.
  29. 02:12So, PayPal Enterprise Payments built an integration to a Gentic commerce protocol that allows you to start taking payments in this manner.
  30. 02:20So, there's a couple different flavors.
  31. 02:22The one I'm going to walk through uses an MCP app.
  32. 02:25So, an MCP app is like an MCP server, but you embed inside of that app.
  33. 02:30You embed UI.
  34. 02:32So, it has HTML, JavaScript, and things like that.
  35. 02:36And those then can get rendered inside of different agents.
  36. 02:40So, Jat GPT can render those.
  37. 02:43You can add an app.
  38. 02:44You can render them in Claude.
  39. 02:45You call that a connector.
  40. 02:47Same thing.
  41. 02:47It's an MCP app.
  42. 02:49And this extension many different agents out there, you know, Goose or other ones also support.
  43. 02:54So, this is kind of a a general standard.
  44. 02:57Instant checkout allows us within chat GPT to trigger like an in chat purchase of something.
  45. 03:07Okay.
  46. 03:08So let me kind of walk through what that flow looks like.
  47. 03:10So first of all, the user will have their intent.
  48. 03:13So they're searching in chat GPT.
  49. 03:15They'd like to buy something and move to the next part.
  50. 03:19There's discovery there.
  51. 03:21So the merchant using an MCP app can show to the user, here's things that you may want to purchase.
  52. 03:27They get to control that experience.
  53. 03:29So it's inside of say chat GPT, but the merchant gets to control it.
  54. 03:34They get to control the look, the feel.
  55. 03:36they get to control what's showing up and interact there.
  56. 03:40Then when the user decides, I'd like to go to the next step and buy this.
  57. 03:45They can trigger this checkout.
  58. 03:46So that's where the MCP app talks to its kind of host chat GPT and says, I'd like to purchase something that uses a gentic commerce protocol.
  59. 03:55behind the scenes, the user would enter in maybe a credit card or maybe they had that stored and move to the next part that will get tokenized against PayPal systems, PayPal enterprise payments.
  60. 04:06And finally, when we get to the end of that, they'll complete that and send that across to the merchant who then charges that.
  61. 04:13So, we kind of look at this big life cycle.
  62. 04:16At the end of it, from the merchants's perspective, they do a couple of things as far as bridging that gap.
  63. 04:21They're pro providing these MCP app experience to the user, but they're also providing [clears throat] they're receiving these tokens that come from ultimately PayPal enterprise payments.
  64. 04:34And that looks like every token they normally process.
  65. 04:36So this is a really seamless integration for them at the end of it.
  66. 04:40And on the back of it, settlements, refunds, chargebacks, compliance, all of that remains the same and is supported through PayPal enterprise payments in general.
  67. 04:50So right now we're just going to do a a walkthrough of searching here in chat GBT.
  68. 04:55This will give you that instant checkout experience.
  69. 04:58So this one here is like a travel app.
  70. 05:01So I'd like to buy some um looking for some hotels.
  71. 05:05Um here's some different options.
  72. 05:06And I'll just pause here.
  73. 05:07So you can see this UI here is not a chat GPT UI.
  74. 05:12This is controlled by the merchant.
  75. 05:15merchant gets to specify that they can have their interface for what makes sense depending on what they're selling.
  76. 05:21Um, sorry that fast forward through there.
  77. 05:27Hit play.
  78. 05:29And so then we continue here.
  79. 05:31When they're ready, they go to proceed to checkout.
  80. 05:33This now is pulling up the chat GBT instant checkout experience inside of there.
  81. 05:40So the the merchant isn't actually generating this.
  82. 05:42This is provided from the instant checkout experience.
  83. 05:46Apologies about that.
  84. 05:50And from there, they start entering in their credentials.
  85. 05:54So, they're going to enter in some credit card details.
  86. 05:56It's just a test credit card number that they're going to enter.
  87. 05:59And behind the scenes, that'll be tokenized with PayPal.
  88. 06:02So if you're kind of not familiar with payments, tokenization means where the user exchanges a real payment credential that's transactable, say your credit card number and instead they exchange that for a token that can then be passed around without increasing PCI scope and you know dangerous things happening.
  89. 06:18So that's what's going to happen right here behind the scenes is a tokenization will occur and that's the merchant doesn't have to do that.
  90. 06:26This is like within the host the host app is going to do that tokenization send it to PayPal enterprise payments and then we give back the token to chat GPT and that's safe to pass around.
  91. 06:38So this is what's happening right now.
  92. 06:39Tokenization is occurring and then it's going to be sent to the merchant.
  93. 06:42The merchant receives that and says okay now I transact with that token securely.
  94. 06:47And now you see they've come back to the MCP app.
  95. 06:50This has been updated.
  96. 06:50Their booking's been confirmed.
  97. 06:52And so you can see from a merchants's perspective, they have all control of what that UI looks like and it's pretty seamless for the the user.
  98. 07:02What are the integration points here?
  99. 07:04So the first integration point is inside of that MCP app widget.
  100. 07:08So this I'm showing you the real code for um for do this instant checkout with open AAI.
  101. 07:13You need to have this JavaScript code that triggers that checkout experience.
  102. 07:18So that's provided within the context of your MCP app.
  103. 07:22And then the next place where the merchant picks this up is they receive a call to their MCP server with this complete checkout tool and they get that token and then they can proceed as usual with their processing of you know a typical
  104. 07:38PayPal enterprise payments token.
  105. 07:40So it's really pretty straightforward as far as that goes.
  106. 07:43Now there's still obviously the work of creating an MCP app within that experience.
  107. 07:48Also, there's um links here to the QR code if you want to like follow and look at the docs for how you would set this up.
  108. 07:56And what's kind of happening behind the scenes here is these tokens are constrained in a number of ways.
  109. 08:02One of them is with the merchant so that this is can only be processed on a given merchant.
  110. 08:07It has a max amount of dollars that are applied.
  111. 08:10It has a currency.
  112. 08:11It also has an expiration.
  113. 08:12So, you can't just use this forever.
  114. 08:14And all of those transactions when processed they get attributed to the source where they came from.
  115. 08:20So this would show up within PayPal enterprise payments as a chat GPT um transaction that occurred.
  116. 08:31Um so next I'm going to walk through what Google AI mode and how we're meeting merchants there.
  117. 08:37So the flow looks a little bit different when you're processing transactions on Google AI mode.
  118. 08:43So first of all the user might be shopping in AI mode that you know want to buy you know say a pair of running shoes or something like that
  119. 08:52behind the scenes using the universal commerce protocol the agent will create a session against that merchant for the user.
  120. 09:00So that kind of exists as an entity belonging to the merchant and and it uses that.
  121. 09:06Then when the user says I now want to check out with this the tokenization happens but here this is using Google pay.
  122. 09:13So Google pay would tokenize with PayPal enterprise payments.
  123. 09:17And so that's step three and then give that token back to the merchant.
  124. 09:21And you kind of see this is actually a very similar model.
  125. 09:24Then at the completion step they provide that to the merchant.
  126. 09:27And at step five we do the charge.
  127. 09:30So the merchant comes along and says here's my token.
  128. 09:32I would like to process this transaction.
  129. 09:35here's all the information about it and the same sorts of things like this again settlement refunds chargeback risk compliance this all is just standard operating procedure as far as the merchants perspective
  130. 09:48but they receive this token from a different path this came in through Google AI mode one of the things to note here is in Google AI mode the merchant doesn't create
  131. 10:00an MCP app they don't create an experience their integration with Google AI mode is more providing here are my products, here is my endpoints for receiving the payments, the complete checkout payment
  132. 10:14um and so forth.
  133. 10:16There is no like UI that you have to build.
  134. 10:18You have to stand up endpoints essentially to to integrate with this.
  135. 10:23Um so you can see here one of them is specific specifying in your um well-known JSON file for universal commerce protocol and you specify some things that tell us
  136. 10:37or tell Google pay this is needs to be processed on brainree or PayPal and price payments and here's your merchant ID and here's your client key and that's safe to pass through in the public.
  137. 10:46Then Google will take that and when the final end of it is you'll get a call to this endpoint from UCP checkout session with that session ID and a complete
  138. 10:56and you then get to process that and what you'll receive in there is this um token representing the credit card behind that Google Pay payment.
  139. 11:07So again two main key integration points um as far as receiving those payments.
  140. 11:13The next one I'm going to show you here is about MCP apps and just kind of opening up your mind about what are the other things that you could do with MCP apps.
  141. 11:23This one gives the merchant really full control over the whole experience and we're going to work in things that are not necessarily Google or ChatGpt, but there's a lot of different
  142. 11:34um agents that already support MCP apps.
  143. 11:38So, a couple of key pieces here.
  144. 11:39One is that there's the MCP app widget.
  145. 11:42So this will in our example here will show like a product card and you'll get a checkout button.
  146. 11:46Then there'll be a handoff um that will open up the checkout into an external page.
  147. 11:53So then you can complete that there and then come back and get it automatically updated within your MCP app.
  148. 12:00So that gives you a lot more control, but there is a little bit more friction that's in introduced in this mode because you're not you're not doing like the actual checkout inside of your agent.
  149. 12:12So let's um walk through this one.
  150. 12:15So here we're going to search for some things uh that we'd like to buy.
  151. 12:22And this loads up an MCP app.
  152. 12:25And you see this is using cloud and this is a connector.
  153. 12:30So MCP apps show up as connectors or apps depending on you know the container.
  154. 12:35So here's this is the MCP app.
  155. 12:37The merchant would design this.
  156. 12:39They add the things that the user now is picking what they want and when they click checkout this is now going to pop up an external link and you can tie these together
  157. 12:48with a session as a merchant.
  158. 12:49So that's what's happening here.
  159. 12:51This opens up that session.
  160. 12:52They can then can complete things with any payment method that they want.
  161. 12:56You have complete control as a merchant over everything.
  162. 12:59But when you complete that, notice how this MCP app updates automatically.
  163. 13:03So, we're using communication behind the scenes to allow us to know exactly that it was completed and the status of that order and everything.
  164. 13:11So, that again just kind of demos for you what you can do with an MCP app and kind of what's on the table.
  165. 13:17And there's a lot of new things um coming along here.
  166. 13:20MCP apps has a new feature.
  167. 13:22It's not supported in most of the major ones yet that is called elicitation and so you can do that maybe a little bit more seamlessly as far as requesting that external
  168. 13:32validation in an iframe or something.
  169. 13:34So that's coming soon.
  170. 13:35Um I wanted to show you what you could really do today which is you know like this.
  171. 13:40This kind of gives you a little bit of an over overview of like what are the different options um that we offer merchants today and kind of what are some of the trade-offs.
  172. 13:48So like if you want to be in chat GPT or you want to be on Google um there's options for you or if you want more control as a merchant over the whole experience
  173. 13:58you also have um some options there too.
  174. 14:02And um yeah so that's um that's the main thing that I wanted to share with you.
  175. 14:07Uh there's a link here on this QR code if you want to look at our docs find out more about how to sign up and how to use that.
  176. 14:14And if you have any questions, um, I'd love to hear that.
  177. 14:19I don't know if we can maybe do questions here.
  178. 14:21Maybe just come talk to me afterwards.
  179. 14:22We also have a booth over there in the back of the room.
  180. 14:25So, I'm going to be there for the next hour or so and would love to talk to any of you who have any questions about uh what we offer.
  181. 14:32Thank you.
  182. 14:50[music]