Skip to main content
POST
/
google-pay
/
v1
/
{account_id}
/
payments
/
{payment_id}
/
transactions
googlePayPost_Google_Pay_Transaction
curl --request POST \
  --url https://payments.psp-test.dintero.com/google-pay/v1/{account_id}/payments/{payment_id}/transactions \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '
{
  "reference": "01249a0e-18d9-4b8e-8834-2319b3f32bb5",
  "payment_data": "<string>"
}
'
import requests

url = "https://payments.psp-test.dintero.com/google-pay/v1/{account_id}/payments/{payment_id}/transactions"

payload = {
"reference": "01249a0e-18d9-4b8e-8834-2319b3f32bb5",
"payment_data": "<string>"
}
headers = {
"authorization": "<authorization>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({reference: '01249a0e-18d9-4b8e-8834-2319b3f32bb5', payment_data: '<string>'})
};

fetch('https://payments.psp-test.dintero.com/google-pay/v1/{account_id}/payments/{payment_id}/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://payments.psp-test.dintero.com/google-pay/v1/{account_id}/payments/{payment_id}/transactions"

payload := strings.NewReader("{\n \"reference\": \"01249a0e-18d9-4b8e-8834-2319b3f32bb5\",\n \"payment_data\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://payments.psp-test.dintero.com/google-pay/v1/{account_id}/payments/{payment_id}/transactions")
.header("authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"reference\": \"01249a0e-18d9-4b8e-8834-2319b3f32bb5\",\n \"payment_data\": \"<string>\"\n}")
.asString();
{
  "payment_id": "<string>",
  "transaction_id": "<string>",
  "auth_method": {
    "payment_id": "<string>",
    "transaction_id": "<string>"
  },
  "operations": [
    {
      "href": "<string>",
      "method": "POST",
      "content_type": "application/json"
    }
  ]
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}

Headers

authorization
string
required

Access token you received when creating the payment

Path Parameters

account_id
string
required

The Dintero merchant account id

Pattern: ^[PT]\d{8}
Example:

"P12345678"

payment_id
string
required

Body

application/json
reference
string
required

Unique reference for this transaction

Required string length: 8 - 40
Example:

"01249a0e-18d9-4b8e-8834-2319b3f32bb5"

payment_data
string
required

Should be a JSON stringified version of the PaymentData response from Google Pay API, see https://developers.google.com/pay/api/web/reference/response-objects#PaymentData

Response

Created transaction and auth instructions.

payment_id
string
required
transaction_id
string
required
auth_method
object
required

Authentication instructions. If the Google Pay transaction was not verified, 3D-Secure authentication might be required.

operations
object[]
required
Last modified on May 12, 2026