Skip to content

Commit 3211698

Browse files
Merge pull request #46 from PaystackOSS/patch-pages
Chore: Add parameters to the Create Page endpoint
2 parents 1d8dea5 + 9a920f0 commit 3211698

1 file changed

Lines changed: 42 additions & 2 deletions

File tree

base/paystack.yaml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4278,17 +4278,57 @@ components:
42784278
description: |-
42794279
Amount should be in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR
42804280
type: integer
4281+
currency:
4282+
description: |-
4283+
The transaction currency. Defaults to your integration currency.
4284+
type: string
4285+
enum:
4286+
- NGN
4287+
- GHS
4288+
- ZAR
4289+
- KES
4290+
- USD
42814291
slug:
42824292
description: |-
4283-
URL slug you would like to be associated with this page. Page will be accessible at https://paystack.com/pay/[slug]
4293+
URL slug you would like to be associated with this page. Page will be accessible at `https://paystack.com/pay/[slug]`
4294+
type: string
4295+
type:
4296+
description: |
4297+
The type of payment page to create. Defaults to `payment` if no type is specified.
4298+
type: string
4299+
enum:
4300+
- payment
4301+
- subscription
4302+
- product
4303+
- plan
4304+
plan:
4305+
description: The ID of the plan to subscribe customers on this payment page to when `type` is set to `subscription`.
4306+
type: string
4307+
fixed_amount:
4308+
description: Specifies whether to collect a fixed amount on the payment page. If true, `amount` must be passed.
4309+
type: boolean
4310+
split_code:
4311+
description: The split code of the transaction split. e.g. `SPL_98WF13Eb3w`
42844312
type: string
42854313
metadata:
42864314
description: Stringified JSON object of custom data
42874315
type: string
42884316
redirect_url:
4289-
description: |-
4317+
description: |
42904318
If you would like Paystack to redirect to a URL upon successful payment, specify the URL here.
42914319
type: string
4320+
success_message:
4321+
description: |
4322+
A success message to display to the customer after a successful transaction
4323+
type: string
4324+
notification_email:
4325+
description: |
4326+
An email address that will receive transaction notifications for this payment page
4327+
type: string
4328+
collect_phone:
4329+
description: |
4330+
Specify whether to collect phone numbers on the payment page
4331+
type: boolean
42924332
custom_fields:
42934333
description: |-
42944334
If you would like to accept custom fields, specify them here.

0 commit comments

Comments
 (0)