Payment Related

This document covers all services for payment-related checkout, including the requests and responses associated with these services.

circle-exclamation

GET Available Payment Options

This method is used to get a list for all available payment options.

Path: https://{commerce_url}/orders/checkout/?page=PaymentOptionSelectionPage

The following payment_option are currently available:

credit_card 	=> 'Credit Card'
funds_transfer 	=> 'Funds Transfer'
pay_on_delivery => 'Pay On Delivery'
bkm_express 	=> 'BKM Express'
loyalty_money 	=> 'Store Credit'
cash_register 	=> 'Cash Register'
gpay 			=> 'Garanti Pay'
redirection 	=> "Redirect to Bank"
stored_card 	=> 'Stored Card'
masterpass 		=> 'Masterpass'
credit_payment 	=> 'Credit Payment'
saved_card		=> 'Saved Card'
pay_later		=> 'Pay Later'
confirmation 	=> 'Confirmation From User'

Example Request

Example Response

POST Set Payment Option

This method is used to set the selected payment option to the current pre-order.

Path: https://{commerce_url}/orders/checkout/?page=PaymentOptionSelectionPage

The endpoint result may vary depending on the selected payment option. Thus, the next page could be one of the following:

  • BinNumberPage

  • FundsTransferChoicePage

  • BexSelectionPage

  • LoyaltyMoneyPage

  • CashRegisterPage

  • PaySelectionPage

  • RedirectionPaymentSelectedPage

  • MobilExpressSelectionPage

  • MasterpassBinNumberPage

  • CreditPaymentSelectionPage

  • PayLaterCompletePage

  • SavedCardSelectionPage

  • ConfirmationPaymentAgreementCheckPage

Example Request

Example Response

Example Response - Pay on Delivery

When the user selects "Pay on Delivery" as the payment option, the following endpoint response is returned.

POST Set Payment Choice

This method is used to set the selected payment option (Pay on Delivery) to the current pre-order.

Path: https://{commerce_url}/orders/checkout/?page=PayOnDeliveryPaymentChoicePage

The endpoint result may vary depending on "sms verification", "Pay on Delivery" configuration option.

Example Request

Example Response - SMS Verification Required

Example Response - SMS Verification Disabled

POST SMS Verification

This method is used to set the verification code for SMS verification.

Path: https://{commerce_url}/orders/checkout/?page=VerifySmsPage

Example Request

Example Response

GET Created Order Information

This method is used to get created order information from pre-order.

Path: https://{commerce_url}/orders/checkout/?page=ThankYouPage

Example Request

Example Response

Last updated

Was this helpful?