Skip to main content

Update payment link

This endpoint allows you to update a payment page by its reference.

Endpoint

POST /PaymentPages/Update

Headers

Authorization: Bearer

To authorize this API request, you need to include your privateKey as a bearer token. This is done by setting the Authorization header in your request. The header should have the format:

Authorization: "Bearer privateKey"

See how to find your private key on your dashboard here.

Request Body

  • id (integer): The ID of the payment page.
  • businessName (string) - The name of the business.
  • merchantId - The ID of the merchant.
  • pageName (string) - The name of the payment page.
  • description (string) - A description of the payment page.
  • amount (number) - The amount for the payment.
  • isFixedAmount (boolean) - Indicates if the amount is fixed.
  • isPhoneNumberRequired (boolean) - Specifies if a phone number is required for payment.
  • paymentPageLink (string) - The link to the payment page.
  • paymentPageLinkReference (string) - Reference link to the payment page.
  • callBackUrl (string) - The callback URL for payment completion.
  • successMessage (string) - The message to display on successful payment.
  • notificationEmail (string) - The email for payment notifications.
  • isTestMode (boolean) - Indicates if the payment page is in test mode.
  • additionalFields (string) - Additional fields for the payment page.
  • isDeleted (boolean): Indicates if the payment page is deleted.
Request Body
  {
"businessName": "my.business@gmail.com",
"merchantId": 10,
"pageName": "My Payment Page",
"description": "This is a test payment page",
"amount": "100",
"isFixedAmount": true,
"isPhoneNumberRequired": true,
"paymentPageLink": "https://pay.paybridge.africa/pay/my-payment-page",
"paymentPageLinkReference": "my-payment-page",
"callBackUrl": "https://my-payment-page.com/callback",
"successMessage": "Payment successful",
"notificationEmail": "my.business@gmail.com",
"isTestMode": false,
"additionalFields": "[]",
"isDeleted": false,
}
Response (200) - Success
  {
"responseCode": "00",
"responseMessage": "Payment page updated successfully"
}