Shopping Credit Sample Imp.

For shopping credit integration tests, you must first have a sandbox account. If you do not have a sandbox account, you can access the relevant document by clicking on the card below.

Getting Started with the Testing Process

After the relevant settings are completed, you can start testing by running the Pay with iyzico (PWI) services.

During the Pay with iyzico credit integration phase, in accordance with know-your-customer (KYC) rules, the user who opens a new account is recorded in the system as KYC 0. According to the KYC 0 rule, a customer can only make an electronic money (balance) payment of 1250 TL for the test environment. Since the KYC level of a newly registered customer cannot be changed in the sandbox testing environment, you can create a new customer account and complete your process tests before each test during your tests.

NOTE : The minimum amount for Shopping Credit is 500 TL, and in accordance with the KYC rules mentioned above, you can determine the basket amount between 500-1250 TL during your tests.

While testing the shopping credit product, you must select the "Shopping credit" field after logging in to your account via the Pay with iyzico form. When the relevant field is selected, you will see a list showing the banks. You can start the shopping loan process by choosing the bank you want from this list.

After selecting the bank, when you click on the "Continue to bank screen" button, iyzico will direct you to the relevant bank's screen.

Representative guidance for which the sandbox test environment has been prepared will be provided through the Compay bank screen.

You can reach the next page by “Login” with the ready values.

“Payment selection” on this page; It will allow you to test successful, unsuccessful or pending processes.

Successful Shopping Credit Initialize Scenario

To initiate a successful loan payment, you can complete the payment by selecting the "Credit" field from the "Payment type" field. In this case, a successful payment notification will be sent to your webhook address.

Sample Successful Payment Notification

paymentConversationId: conversationID merchantId:3382172 token:18f21ba0-1ccc-406c-b08c-3c1ccdc663d7 status : SUCCESS iyziReferenceCode : 70335a65-5eaa-46f3-9c77-6fcce1d0f168 iyziEventType : CREDIT_PAYMENT_AUTH iyziEventTime : 16613246355542022-08-24T07:03:55.554Z iyziPaymentId : 18152059




Pending Shopping Credit Initialize Scenario

If you select the Payment Type as “Fast loan”, you can test the pending loan status called Pending.


Sample Pending Payment Notification

paymentConversationId : conversationID merchantId : 3382172 token : c0b76c4b-0288-4103-83c3-992fb2166578 status : PENDING_CREDIT iyziReferenceCode : b9ed9774-453c-4b37-82d3-4698157a8615 iyziEventType : CREDIT_PAYMENT_PENDING iyziEventTime : 16613253560382022-08-24T07:15:56.038Z iyziPaymentId : 18152079



Failed Shopping Credit Initialize Scenario

You can perform a failed payment test by selecting the payment type as "Credit", selecting the Error type and Error code fields and pressing the "Cancel payment" button.

Sample Failed Payment Notification

paymentConversationId : conversationID merchantId : 3382172 token : 8383114b-1964-4df4-9bc2-13ee17f6324d status : FAILURE iyziReferenceCode : d291ad6b-7c79-4299-9e86-9dad46c40a5a iyziEventType : CREDIT_PAYMENT_AUTH iyziEventTime : 16613254902412022-08-24T07:18:10.241Z iyziPaymentId : 18152077



Last updated