1. Payin
Pinddpay
  • Guides
    • Integration Instructions
    • Signature
  • Payin
    • Create order session
      POST
    • Create a transaction
      POST
    • Query a transaction
      GET
    • Webhook
  • Payout
    • Create a payout
      POST
    • Query balance
      GET
    • Webhook
  • Subscription
    • Card
      • Cancel subscription
      • Webhook
  • Other
    • Enums
    • Test cards
  1. Payin

Create a transaction

将废弃
POST
/api/gateway/authorization
After creating a transaction, open the URL corresponding to paylink to make payment

请求参数

Header 参数

Body 参数application/json

示例
{
    "appid": "TEST",
    "order": {
        "id": "ORDER_123456",
        "sku": {
            "id": "SKU-123456",
            "currency": "USD",
            "amount": 1.99,
            "name": "VIP",
            "quantity": 1
        }
    },
    "customer": {
        "id": "user-123",
        "country": "US",
        "ip": "127.0.0.1",
        "name": "JAMES",
        "email": "james@tesg.com"
    },
    "notifyUrl": "https://example.com/callback",
    "redirectUrl": "https://example.com/redirect",
    "cancelUrl": "https://greedy-widow.org/",
    "options": {
        "redirectionCountdown": 5,
        "paymentMethod": "paypal",
        "orderType": "checkout"
    },
    "website": "https://yourwebsite.com",
    "subscription": {
        "planId": "plan-123456",
        "description": "test subscription",
        "interval": "month",
        "intervalCount": 1,
        "billingCycle": 12
    },
    "billing": {
        "firstName": "zhang",
        "lastName": "san",
        "email": "zhangsan@test.com",
        "phone": "123435353",
        "address1": "street 1",
        "address2": "laborum cillum est Ut dolor",
        "city": "Beijing",
        "state": "Beijing",
        "zipCode": "123456",
        "country": "CN"
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://api-test.pinddpay.com/api/gateway/authorization' \
--header 'accessKey: ' \
--header 'timestamp: ' \
--header 'nonce: ' \
--header 'sign: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appid": "TEST",
    "order": {
        "id": "ORDER_123456",
        "sku": {
            "id": "SKU-123456",
            "currency": "USD",
            "amount": 1.99,
            "name": "VIP",
            "quantity": 1
        }
    },
    "customer": {
        "id": "user-123",
        "country": "US",
        "ip": "127.0.0.1",
        "name": "JAMES",
        "email": "james@tesg.com"
    },
    "notifyUrl": "https://example.com/callback",
    "redirectUrl": "https://example.com/redirect",
    "cancelUrl": "https://greedy-widow.org/",
    "options": {
        "redirectionCountdown": 5,
        "paymentMethod": "paypal",
        "orderType": "checkout"
    },
    "website": "https://yourwebsite.com",
    "subscription": {
        "planId": "plan-123456",
        "description": "test subscription",
        "interval": "month",
        "intervalCount": 1,
        "billingCycle": 12
    },
    "billing": {
        "firstName": "zhang",
        "lastName": "san",
        "email": "zhangsan@test.com",
        "phone": "123435353",
        "address1": "street 1",
        "address2": "laborum cillum est Ut dolor",
        "city": "Beijing",
        "state": "Beijing",
        "zipCode": "123456",
        "country": "CN"
    }
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "code": 0,
    "time": "string",
    "type": "string",
    "extras": null,
    "result": {
        "appId": "string",
        "orderId": "123456789",
        "payments": [
            {
                "id": "string",
                "name": "string",
                "paylink": "string"
            }
        ],
        "merchantOrderNo": "string"
    },
    "message": "string"
}
修改于 2026-05-18 10:26:58
上一页
Create order session
下一页
Query a transaction
Built with