Selamlar,
Burada yazilanlardan cok faydalandim. Benzer sorunlari asmama yardimci oldu Herkese tesekkurler ediyorum.
Benim sorunum su:
Odeme basarili oluyor ve iyzicodan bana bir token geliyor. Bu tokenla gerceklesen odeme hakkinda detay bilgi ve basarili olup olmadigini ogrenmeniz icin bir api end point var.
gelen tokeni iyzico postman orneklerine koyup bilgiyi istedigimde asagida postman basligi altinda gelen cevap donuyor.
ben larvelden ayni tokeni
$pay = new PaymentService();
$pay->IyzicoRequest($order_id, $token);
seklinde istedigimde ise asagidaki laravel basligindaki cevap geliyor. Nedeni ne olabilir postamndaki gibi bir cevap niye alamiyorum.
Yardimci olan herkese tesekkurler.
POSTMAN
{
"status": "success",
"locale": "tr",
"systemTime": 1549726096707,
"conversationId": "6",
"price": 86.8,
"paidPrice": 86.8,
"installment": 1,
"paymentId": "11232792",
"fraudStatus": 1,
"merchantCommissionRate": 0,
"merchantCommissionRateAmount": 0,
"iyziCommissionRateAmount": 2.2785,
"iyziCommissionFee": 0.25,
"cardType": "CREDIT_CARD",
"cardAssociation": "MASTER_CARD",
"cardFamily": "Cardfinans",
"cardToken": "8kH/9psZ8iYc6/F94gHSew+lZrI=",
"cardUserKey": "uZt42FhRpETzeN+ho0WYLcStHBk=",
"binNumber": "531157",
"lastFourDigits": "0005",
"basketId": "6",
"currency": "TRY",
"itemTransactions": [
{
"itemId": "6",
"paymentTransactionId": "11887733",
"transactionStatus": 2,
"price": 86.8,
"paidPrice": 86.8,
"merchantCommissionRate": 0,
"merchantCommissionRateAmount": 0,
"iyziCommissionRateAmount": 2.2785,
"iyziCommissionFee": 0.25,
"blockageRate": 10,
"blockageRateAmountMerchant": 8.68,
"blockageRateAmountSubMerchant": 0,
"blockageResolvedDate": "2019-02-16 14:43:34",
"subMerchantPrice": 0,
"subMerchantPayoutRate": 0,
"subMerchantPayoutAmount": 0,
"merchantPayoutAmount": 75.5915,
"convertedPayout": {
"paidPrice": 86.8,
"iyziCommissionRateAmount": 2.2785,
"iyziCommissionFee": 0.25,
"blockageRateAmountMerchant": 8.68,
"blockageRateAmountSubMerchant": 0,
"subMerchantPayoutAmount": 0,
"merchantPayoutAmount": 75.5915,
"iyziConversionRate": 0,
"iyziConversionRateAmount": 0,
"currency": "TRY"
}
}
],
"authCode": "927447",
"phase": "AUTH",
"hostReference": "mock00005iyzihostrfn",
"token": "3585fdee-8101-49df-80a0-cbd48321a9b3",
"callbackUrl": "http://127.0.0.1:8000/successful",
"paymentStatus": "SUCCESS"
}
LARAVEL
PaymentService {#291 ▼
+IOptions: Options {#286 ▼
-apiKey: "sandbox-ZZ9UX8bjutMeetSiVCsjAeZKtHagMoxe"
-secretKey: "sandbox-OayW0wvAw0ufRpZCaDE6RmPcB0CTMvsO"
-baseUrl: "https://sandbox-api.iyzipay.com"
}
+IRequest: RetrieveCheckoutFormRequest {#305 ▼
-token: "3585fdee-8101-49df-80a0-cbd48321a9b3"
-locale: "tr"
-conversationId: 6
}
+ICheckOut: CheckoutForm {#303 ▼
-token: null
-callbackUrl: null
-price: null
-paidPrice: null
-installment: null
-currency: null
-paymentId: null
-paymentStatus: null
-fraudStatus: null
-merchantCommissionRate: null
-merchantCommissionRateAmount: null
-iyziCommissionRateAmount: null
-iyziCommissionFee: null
-cardType: null
-cardAssociation: null
-cardFamily: null
-cardToken: null
-cardUserKey: null
-binNumber: null
-basketId: null
-paymentItems: null
-connectorName: null
-authCode: null
-phase: null
-lastFourDigits: null
-posOrderId: null
-status: null
-errorCode: null
-errorMessage: null
-errorGroup: null
-locale: null
-systemTime: null
-conversationId: null
-rawResult: null
}
+IForm: CreateCheckoutFormInitializeRequest {#287 ▼
-price: null
-paidPrice: null
-basketId: null
-paymentGroup: "PRODUCT"
-paymentSource: null
-currency: "TRY"
-buyer: Buyer {#294 ▶}
-shippingAddress: Address {#295 ▶}
-billingAddress: Address {#296 ▶}
-basketItems: array:1 [▼
0 => BasketItem {#297 ▶}
]
-callbackUrl: "http://127.0.0.1:8000/successful"
-forceThreeDS: null
-cardUserKey: null
-posOrderId: null
-enabledInstallments: array:4 [▼
0 => 2
1 => 3
2 => 6
3 => 9
]
-debitCardAllowed: null
-locale: "tr"
-conversationId: null
}
+IShipping: Address {#295 ▼
-address: null
-zipCode: null
-contactName: null
-city: null
-country: null
}
+IBuyer: Buyer {#294 ▼
-id: null
-name: null
-surname: null
-identityNumber: "51117"
-email: null
-gsmNumber: null
-registrationDate: "2019-02-09 19:00:39"
-lastLoginDate: "2019-02-09 19:00:39"
-registrationAddress: null
-city: null
-country: null
-zipCode: null
-ip: "127.0.0.1"
}
+IBilling: Address {#296 ▼
-address: null
-zipCode: null
-contactName: null
-city: null
-country: null
}
+FBasketItems: BasketItem {#297 ▼
-id: null
-price: null
-name: "Binocular"
-category1: "Collectibles"
-category2: null
-itemType: "PHYSICAL"
-subMerchantKey: null
-subMerchantPrice: null
}
+checkoutFormInitialize: CheckoutFormInitialize {#298 ▼
-token: null
-checkoutFormContent: null
-tokenExpireTime: null
-paymentPageUrl: null
-status: null
-errorCode: null
-errorMessage: null
-errorGroup: null
-locale: null
-systemTime: null
-conversationId: null
-rawResult: null
}
}