All URIs are relative to https://openapi.alipay.com
Method | HTTP request | Description |
---|---|---|
Status | GET /v3/alipay/ebpp/pdeduct/bill/pay/status | 缴费直连代扣订单支付状态查询 |
AlipayEbppPdeductBillPayStatusResponseModel Status (string agreementId = null, string openId = null, string outOrderNo = null)
缴费直连代扣订单支付状态查询
缴费直连代扣
using System.Collections.Generic;
using System.Diagnostics;
using AlipaySDKNet.OpenAPI.Api;
using AlipaySDKNet.OpenAPI.Client;
using AlipaySDKNet.OpenAPI.Model;
using AlipaySDKNet.OpenAPI.Util;
using AlipaySDKNet.OpenAPI.Util.Model;
namespace Example
{
public class StatusExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://openapi.alipay.com";
var apiInstance = new AlipayEbppPdeductBillPayApi(config);
// 设置alipayConfig参数
AlipayConfig alipayConfig = new AlipayConfig();
alipayConfig.AppId = "app_id";
alipayConfig.PrivateKey = "private_key";
// 密钥模式
alipayConfig.AlipayPublicKey = "alipay_public_key";
// 证书模式
// alipayConfig.AppCertPath = "../appCertPublicKey.crt";
// alipayConfig.AlipayPublicCertPath = "../alipayCertPublicKey_RSA2.crt";
// alipayConfig.RootCertPath = "../alipayRootCert.crt";
alipayConfig.EncryptKey = "encrypt_key";
AlipayConfigUtil alipayConfigUtil = new AlipayConfigUtil(alipayConfig);
apiInstance.Client.SetAlipayConfigUtil(alipayConfigUtil);
var agreementId = 2088123123421312; // string | 支付宝用户ID (optional)
var openId = 074a1CcTG1LelxKe4xQC0zgNdId0nxi95b5lsNpazWYoCo5; // string | 用户UserId在应用AppId下的唯一用户标识 (optional)
var outOrderNo = 12312313; // string | 商户代扣业务流水 (optional)
try
{
// 缴费直连代扣订单支付状态查询
AlipayEbppPdeductBillPayStatusResponseModel result = apiInstance.Status(agreementId, openId, outOrderNo);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AlipayEbppPdeductBillPayApi.Status: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
agreementId | string | 支付宝用户ID | [optional] |
openId | string | 用户UserId在应用AppId下的唯一用户标识 | [optional] |
outOrderNo | string | 商户代扣业务流水 | [optional] |
AlipayEbppPdeductBillPayStatusResponseModel
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |