Ödeme isteği sonucunda IsAutoCommit değeri false olarak gönderilmişse ?uid=UNIQUEID&key=CONFIRMKEY (CONFIRMKEY değeri, 3D doğrulama başarılı ise önceki metodda oluşturulan ConfirmKey değeridir) bu metod çağrılarak 3D ödeme tamamlanır.
Input: String
Output: Result>PayResponse< modelidir.
Request URL
POST API_URL/payComplete
Doğrulanmış işlemin onaylanması
//Request
var client = new RestClient(url);
var request = new RestRequest("payComplete?uid=UNIQUEID&key=CONFIRMKEY", Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("MerchantId", "MERCHANT ID NİZ");
request.AddHeader("UserId", "API USER ID NİZ");
request.AddHeader("ApiKey", "API KEY İNİZ");
var result = client.Execute(request);
//Response
{
Message: "000-Ödeme Başarılı",
ErrorCode: 0,
Errors: null,
IsDone: true,
ElapsedTime: 0,
Content: {
Is3D: true,
IsAutoCommit: true,
ConfirmKey : null,
ReturnUrl: null,
Id: 681,
Uid: "869d4120-b083-42fc-abaa-7cce9c49f023",
NetAmount: 1.97,
WithdrawnAmount: 2,
FmCostRate: 1.69,
FmCostAmount: 0.03,
Status: 4,
AuthCode: "254696",
CreationTime: "2021-10-31T20:50:22.98756",
ClientIp: "194.15.103.201",
OrderId: "202110312050224105570",
CardInfo: {
CardOwner: "NE**** KA****",
CardNo: "453144******2283",
Month: null,
Year: null,
Cvv: null
},
CustomerInfo: {
Name: "MÜŞTERİ ADI",
Email: "tets@test.com",
Address: null,
Phone: "5500001122",
Description: null
},
Products: [
{
Name: "Ürün Adı",
Count: 1,
UnitPrice: 2
}
],
Installment: 1,
Amount: 2,
ReflectCost: false,
}
}