Checkout

A comprehensive testing strategy is crucial to ensure the successful integration of SmartpayGenie into your application. Here are some key testing types:

Create plan checkout

'POST'

Request parameters

Parameters

Type

Description

Required

plan_id

String

Unique identifier of the plan

Optional

payment_method_id

Number

Unique identifier of the payment method

Optional

metadata

Object

Additional metadata (optional)

Optional

customer_id

Object

Unique identifier of the customer

optional

Request Payload

JSON

{
  "plan_id": "plan_id_1",
  "customer_id": "customer_id_1",
  "payment_method_id": "payment_id_1"
}

Response

Success Icon

200 - OK successful response

{
  "id": "subscription_id",
  "plan_id": "plan_id",
  "customer_id": "customer_id",
  "status": "active",
  "start_date": "2023-11-22T13:37:20Z",
  "next_billing_date": "2023-12-22T13:37:20Z"
}

Support

If you encounter any issues or have questions, please feel free to contact our dedicated

support team.

We are committed to providing you with the best possible experience and support.