Transactions API tidak akan digunakan lagi mulai 3 Mei 2023, sebelum penghentian Percakapan Percakapan pada 13 Juni 2023. Untuk mengetahui informasi selengkapnya, lihat
Penghentian Action Percakapan.
GooglePaymentOption
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Persyaratan untuk metode pembayaran yang disediakan Google.
Representasi JSON |
{
"facilitationSpec": string
} |
Kolom |
facilitationSpec |
string
Blob JSON ini menangkap spesifikasi tentang cara Google memfasilitasi pembayaran untuk integrator, yang merupakan objek PaymentDataRequest seperti yang ditentukan dalam https://developers.google.com/pay/api/web/reference/object#PaymentDataRequest Contoh: { "apiVersion": 2, "apiVersionMinor": 0, "merchantInfo": { "merchantName": "Example Merchant" }, "allowedPaymentMethods": [ { "type": "CARD", "parameters": { "allowedAuthMethods": ["PAN_ONLY", "CRYPTOGRAM_3DS"], "allowedCardNetworks": ["AMEX", "DISCOVER", "JCB", "MASTERCARD", "VISA"] }, "tokenizationSpecification": { "type": "PAYMENT_GATEWAY", "parameters": { "gateway": "example", "gatewayMerchantId": "exampleGatewayMerchantId" } } } ], "transactionInfo": { "totalPriceStatus": "ESTIMATED", "totalPrice": "12.34", "currencyCode": "USD" }
|
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-28 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-28 UTC."],[[["\u003cp\u003eGoogle-provided payment methods utilize a JSON representation for specifying payment details.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003efacilitationSpec\u003c/code\u003e field contains a PaymentDataRequest object which outlines how Google handles the payment process for integrators.\u003c/p\u003e\n"],["\u003cp\u003eThis object includes information like merchant details, allowed payment methods, and transaction details like total price and currency.\u003c/p\u003e\n"]]],[],null,["# GooglePaymentOption\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nRequirements for Google-provided payment method.\n\n| JSON representation ||\n|----------------------------------------|---|\n| ``` { \"facilitationSpec\": string } ``` |\n\n| Fields ||\n|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `facilitationSpec` | `string` This JSON blob captures the specification for how Google facilitates the payment for integrators, which is the PaymentDataRequest object as defined in \u003chttps://developers.google.com/pay/api/web/reference/object#PaymentDataRequest\u003e Example: { \"apiVersion\": 2, \"apiVersionMinor\": 0, \"merchantInfo\": { \"merchantName\": \"Example Merchant\" }, \"allowedPaymentMethods\": \\[ { \"type\": \"CARD\", \"parameters\": { \"allowedAuthMethods\": \\[\"PAN_ONLY\", \"CRYPTOGRAM_3DS\"\\], \"allowedCardNetworks\": \\[\"AMEX\", \"DISCOVER\", \"JCB\", \"MASTERCARD\", \"VISA\"\\] }, \"tokenizationSpecification\": { \"type\": \"PAYMENT_GATEWAY\", \"parameters\": { \"gateway\": \"example\", \"gatewayMerchantId\": \"exampleGatewayMerchantId\" } } } \\], \"transactionInfo\": { \"totalPriceStatus\": \"ESTIMATED\", \"totalPrice\": \"12.34\", \"currencyCode\": \"USD\" } } |"]]