curl --request POST \
--url https://api.qbank.cl/platform/pay/{token}/methods/{method}import requests
url = "https://api.qbank.cl/platform/pay/{token}/methods/{method}"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.qbank.cl/platform/pay/{token}/methods/{method}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qbank.cl/platform/pay/{token}/methods/{method}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/pay/{token}/methods/{method}"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.qbank.cl/platform/pay/{token}/methods/{method}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/pay/{token}/methods/{method}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body生成结账支付选项(公开)
延迟创建付款人在通用收款链接上选择的支付选项并返回其指引 — 银行卡/托管方式的支付 URL、二维码方式的二维码、银行转账的申报参考码,或带精确报价金额和可扫描二维码的专属加密货币 充值地址(qr_payload + qr_png_base64 — 始终为 BTC/TRON/ETH 的裸地址, 钱包与交易所可直接读取;Binance 等会拒绝 BIP-21/EIP-681 URI)。法币方式必须传 ?country=XX;本地金额在此刻报价并冻结。当国家以多种 币种提供同一方式时(见报价的 options[] — 例如 BOB 和 USD 的二维码,或银行卡通道)还须传 ¤cy=YYY;每种币种是独立的支付选项。墨西哥的银行转账会为该链接签发一个专属 CLABE (destination 中 dedicated: true):付款人只需转账精确金额,无需填写参考码 — 入账自动路由到该链接。若无法签发专属账户,payload 会降级为传统方式(商户账户 + 转账附言中必填 reference)。对同一 国家+币种+方式重复 POST 返回相同的结果;在无人支付前,选择某个方式不会锁定其他方式。 无需凭证;按 IP 限流。拉取式收款(collect: true)在所选走廊提供时 可用;最终 collect 会在扣款前执行 screening,并可能返回 202 in_review。报价中标有 payer_required: true 的托管跳转方式需在 POST body 中提供 payer_name 与 payer_document;其他方式忽略 body。
curl --request POST \
--url https://api.qbank.cl/platform/pay/{token}/methods/{method}import requests
url = "https://api.qbank.cl/platform/pay/{token}/methods/{method}"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.qbank.cl/platform/pay/{token}/methods/{method}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qbank.cl/platform/pay/{token}/methods/{method}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/pay/{token}/methods/{method}"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.qbank.cl/platform/pay/{token}/methods/{method}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/pay/{token}/methods/{method}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body路径参数
嵌入在 checkout_url 中的不透明结账令牌。
要生成的方式 — 多国目录中的法币方式(qr、card、fintoc、bank_transfer、wallet、pix, 必须传 ?country=XX)或加密货币选项(crypto:tron:usdt、 crypto:eth:usdt、crypto:eth:usdc、crypto:btc:btc,不带国家)。
查询参数
要生成的法币方式的 ISO-3166 alpha-2 国家代码。法币方式必填,加密货币忽略。
本次支付选项的扣款币种,从报价的 options[](或 cards[])目录中选取 (例如 BOB 或 USD)。当国家以多种币种提供该方式时必填;只有一种币种时忽略 (其币种由国家决定)。
响应
所选支付方式的指引。