2Checkout

2Checkout Payment Plugin – Streamline global payments with 2Checkout, offering secure and seamless transactions across multiple currencies. With easy integration, this plugin supports customizable amounts and provides a reliable solution for business

Aliza Fatima

Last Update hace 2 años

Description

Step 1: Install the Plugin

  • Go to the Bubble plugin marketplace.
  • Search for and install the "2Checkout Payment Plugin."
  • Step 2: Obtain the Avangate Authentication Hash

    The plugin requires authentication before making additional API calls, such as creating customers or subscriptions. Start by obtaining an authentication hash:

    1. In your Bubble editor, navigate to the workflow where you want to add the authentication step.
    2. Select the Authenticate action from the plugin options.
    3. In the action settings, enter your 2Checkout API credentials (such as Merchant Code, Secret Key, and any other required fields).
    4. Save the settings, and you’ll now have an authentication hash ready to be used in subsequent calls.
    Create a Customer
  • In the workflow, add a new action.
  • Select the Create Customer action from the plugin options.
  • In the action settings, provide the necessary details, such as:
    • Customer Name
    • Email Address
    • Billing Address
    • Payment Method
  • Include the Authentication Hash obtained in Step 2 to verify the action.
  • Save the workflow.
  • Create a Subscription

  • Add another action to your workflow for subscription setup.
  • Select the Create Subscription action from the plugin options.
  • In the action settings, configure the following:
    • Subscription Value
    • Start Date
    • External Subscription Reference
    • Currency Code (e.g., USD, EUR, GBP)
  • Include the Authentication Hash to complete this request.
  • Save the workflow.
  • Create Product

  • In your Bubble editor, go to the workflow where you want to add the product creation action.
  • Select the Create Product action from the plugin options.
  • In the action settings, provide the required product details, such as:
    • Product Name: The name of the product.
    • Product Description: A brief description of the product.
    • Product Price: The cost of the product.
    • Currency Code: Specify the currency (e.g., USD, EUR, GBP).
  • Test the Integration

  • Add a button on your page that triggers the entire workflow, beginning with authentication, then customer creation, and finally subscription creation.
  • Run a test transaction to verify that each action completes successfully, and that your integration is working as expected.
  • Was this article helpful?

    0 out of 0 liked this article