8Pay
  • Introduction
  • Features
  • Chains
  • Payment flow
  • Sandbox Environment
  • Fees
  • Guides
    • Set up single payments
    • Set up recurring payments
    • Setup automatic buy (DCA) on Dex
  • Integrations
    • Overview
    • Short URLs
    • Buttons
      • One Time
      • Fixed Recurring
      • Variable Recurring
      • On Demand
    • Shopify
    • Woocommerce
    • Streaming Donations
    • JavaScript SDK
  • REST API
    • Overview
    • One Time
      • Payments
      • Transfers
      • Short Urls
    • Wallet to wallet
      • Payments
      • Transfers
    • Fixed Recurring
      • Plans
      • Subscriptions
      • Billings
      • Cancellations
      • Short Urls
      • Transfers
      • Webhook
    • Variable Recurring
      • Plans
      • Subscriptions
      • Billings
      • Cancellation Requests
      • Cancellations
      • Webhook
      • Transfers
      • Short Urls
    • On Demand
      • Plans
      • Subscriptions
      • Allowances
      • Billings
      • Cancellations
      • Webhook
      • Transfers
      • Short Urls
    • Scheduled Payments
      • Schedules
      • Executions
      • Cancellation
      • Transfers
    • Invest (DCA)
      • Strategies
      • Executions
      • Cancellation
    • Webhook Notifications
  • Webhook notifications
    • Overview
    • Events
      • One Time
      • Wallet-to-Wallet
      • Fixed Recurring
      • Variable Recurring
      • On Demand
  • Advanced Features
    • Gas Wallet
    • Autobiller
  • Appendix
    • Categories
    • Tokens
Powered by GitBook
On this page

Was this helpful?

  1. Integrations
  2. Buttons

Variable Recurring

The available parameters are:

  • chain (string) - chain used for the payment

  • planId (string) - if od the plan

  • callbackSuccess (string) - redirect url after success (optional)

  • callbackError (string) - redirect url after failure (optional)

  • extra (string) - json object containing extra parameters that will be sent to webhook (optional)

The following data will be appended to the callbackSuccess url as query parameters:

  • user (string) - address of the user who completed the payment

  • transactionHash (string) - hash of the transaction

Example button

<form action="https://checkout.8pay.network/" method="POST">
    <input type="hidden" name="type" value="variable_recurring">
    <input type="hidden" name="chain" value="bsc">
    <input type="hidden" name="planId" value="0x57b2059e526841b3dfd964144513359c9fcfd6d91040b6c47f589c1e032b6bf7">
    <input type="hidden" name="extra[banner]" value="BR69">
    <input type="hidden" name="extra[traffic]" value="facebook">
    <input type="hidden" name="callbackSuccess" value="https://www.google.com/">
    <input type="hidden" name="callbackError" value="https://www.google.com/">
    <input type="image" src="https://cdn.8pay.network/img/buttons/pay_in_crypto_blue.png" border="0" name="submit" alt="8PAY">
</form>
PreviousFixed RecurringNextOn Demand

Last updated 1 year ago

Was this helpful?