1. Non-3DS Payment
Sipay API Documentation
EN
  • EN
  • TR
  • Overview
    • Getting Started
    • Test Cards
    • IP Restriction
  • Authentication
    • Token Generation
      POST
  • Installments & Commission
    • Installment Details
      POST
    • Commission
      POST
    • Merchant Installments
      POST
  • HASH
    • Hash Creation
    • Hash Validation
  • Non-3DS Payment
    • Non-3DS Payment Flow
    • Non-3DS Card Payment
      POST
    • Non-3DS Recurring Payment
      POST
    • Non-3DS Insurance Payment
      POST
    • Non-3DS Pre-Authorization Payment
      POST
    • Confirm Payment
      POST
  • 3D Secure Payment
    • 3D Secure Payment Flow
    • 3D Secure Card Payment
      POST
    • 3D Secure Recurring Payment
      POST
    • 3D Secure Pre-Authorization Payment
      POST
    • Complete Payment
      POST
    • Confirm Payment
      POST
    • 3D Secure Agriculture Payment
      POST
  • Non-3DS and 3DS Payment with Sipay
    • Purchase Link Example
    • Non-3DS and 3D Secure Payment with Sipay
      POST
  • DPL
    • DPL
    • Status Codes
    • Options for Creating a DPL
    • Create DPL
    • List Payment Links
    • Payment Link Details
    • Update DPL
    • Remove DPL
  • Check Status
    • Check Status
  • Payment with Saved Card
    • Card Registration
    • 3D Secure Pay by Card Token
    • Non-3DS Pay by Card Token
    • Retrieving Saved Card
    • Edit Saved Card
    • Delete Saved Card
  • Recurring
    • Recurring Query Search
    • Recurring Plan Process
    • Recurring Plan Update
  • Refund
    • Refund
  • Cashout
    • Cashout to Bank
  • Webhook
    • Webhook
  • Status Codes
    • Status Codes
  • Plugin
    • Magento v1
    • Magento v2
    • Opencart
    • Presta
    • Woocommerce
    • Shopify
  • Settings
    • DPL Settings
    • Settings Update
  1. Non-3DS Payment

Non-3DS Recurring Payment

Testing Env
https://provisioning.sipay.com.tr
Testing Env
https://provisioning.sipay.com.tr
POST
/ccpayment/api/paySmart2D
This endpoint and its parameters are used to process recurring payments.
For recurring payments to be processed, the order_type parameter must be set to 1 and the following parameters must not be empty:
recurring_payment_number
recurring_payment_cycle
recurring_payment_interval
recurring_web_hook_key

order_type#

Required
Type: Integer
Value : 1
Determines the type of the order.

recurring_payment_number#

Required
Type: Integer
Defines the total number of recurring payments.
Example:
If the initial amount is 100 USD and recurring_payment_number is set to 5, the total processed amount will be 100 USD × 5 = 500 USD.
Additional transaction fees may apply for each installment.

recurring_payment_cycle#

Required
Type : String
Specifies the unit type of the recurring interval.
Possible values:
D → Day
M → Month
Y → Year

recurring_payment_interval#

Required
Type: String
Defines the frequency of the recurring payment based on the selected cycle.
**Example: **
recurring_payment_cycle = M
recurring_payment_interval = 1
means that payment is charged every month.

recurring_web_hook_key#

Required
Type: String
A key used to receive notifications regarding the recurring payment status in your system.
This key can be obtained from the Sipay panel.
The initial payment is sent to the sale webhook, while subsequent payments are sent to the recurring webhook.

The hash key must be sent in the request.
Sample hash keys can be found in the request form panel on the side, corresponding to the selected programming language.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

⚪113Failed
🟠40Failed
Request Request Example
Shell
JavaScript
Java
Swift
#!/usr/bin/env bash
set -euo pipefail

# Example values. Load your merchant app_secret on your server.
# Use the exact amount text sent in the request.
parts=(
  "100.00" # total
  "1" # installments_number
  "TRY" # currency_code
  "merchant_example" # merchant_key
  "INV-DOCS-001" # invoice_id
)
app_secret="example_app_secret"

message=$(IFS='|'; printf '%s' "${parts[*]}")
printf '%s' "$message" | openssl dgst -sha256 -hmac "$app_secret" -r | awk '{print $1}'
Response Response Example
200 - Success
{
    "status_code": 100,
    "status_description": "Payment process successful",
    "data": {
        "sipay_status": 1,
        "order_no": "VP17743519948303411",
        "order_id": "VP17743519948303411",
        "invoice_id": "recurringdeneme-2345wd425456",
        "sipay_payment_method": 1,
        "credit_card_no": "540667****5403",
        "transaction_type": "Auth",
        "payment_status": 1,
        "payment_method": 1,
        "error_code": 100,
        "error": "",
        "auth_code": "P38633",
        "merchant_commission": 0.1,
        "user_commission": 0,
        "merchant_commission_percentage": 2,
        "merchant_commission_fixed": 0,
        "installment": 1,
        "amount": 5,
        "payment_reason_code": "",
        "payment_reason_code_detail": "",
        "total": 5,
        "currency_code": "TRY",
        "hash_key": "3966f87c283a059f936ef9a01006305fcb534886de74015422d76543ef0a25e1",
        "original_bank_error_code": "",
        "original_bank_error_description": "",
        "host_reference_id": "608300452783"
    }
}
Previous
Non-3DS Card Payment
Next
Non-3DS Insurance Payment
Built with