Learn how to integrate Sage Pay with Bubble.io. Follow our detailed step-by-step guide to set up the API in both platforms & process payments via your Bubble.io app successfully.
Sage Pay, now known as Opayo, is a payment service provider based in the United Kingdom. It is part of the Sage Group, a multinational enterprise software company. Sage Pay allows businesses to accept and process credit and debit card payments online and over the phone. The platform supports multiple currencies and provides fraud prevention services. Sage Pay integrates with many popular shopping cart solutions and offers a range of API integration options, making it a comprehensive solution for businesses seeking secure, reliable payment processing.
Book a call with an Expert
Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Bubble apps with your growth in mind.
Integrating Sage Pay with Bubble.io requires a series of specific steps. For this guide, we assume you already have a Bubble.io account and a Sage Pay account. The process would involve setting up the API through Sage Pay, moving to Bubble.io, and integrating the API.
Step 1: Log in to your Sage Pay account. The login page URL typically looks like this: https://live.sagepay.com/mysagepay/login.msp
Step 2: Once you are logged in, navigate to the "Settings" tab on the left panel of your account dashboard.
Step 3: Select the “API Access” sub-tab.
Step 4: In the API access section, select "New API Key". In the pop-up window, enter a name for the API.
Step 5: Sage Pay will generate an API key for you. Make sure to save this API key, you will need it later.
##Bubble.io API setup:
Step 6: Switch to your Bubble.io account and log in.
Step 7: Once logged in, click on your app, then select the 'Plugins' tab from the left panel.
Step 8: On the Plugins page, click on the "+ Add plugins" button.
Step 9: In the search bar that appears, type "API Connector". Select the 'API Connector’ plugin developed by Bubble and click 'install'.
Step 10: Once installed, go back to your app and then from left panel, select the 'Settings' tab and then select the 'API' sub-tab.
Step 11: In the API Provider dropdown menu, select 'API Connector'.
Step 12: In this API connector page, click 'Add another API'.
Step 13: Here, you need to setup the API. Give the API a name. For the Authentication, select 'Private key'. In the Key input field, input the API key that you saved from your Sage Pay account.
Step 14: Define your API calls. You will need to define a POST method in order to let your app access the payment processing function. The POST URL is typically something like: https://pi-test.sagepay.com/api/v1/transactions For this, you will also need a payload in JSON format. The payload will contain information like Vendor Name, Transaction Type, amount and currency, card details etc. A typical JSON format for this includes:
{
"vendorName": "your vendor name",
"transactionType": "Payment",
"paymentMethod": {
"card": {
"merchantSessionKey": "your session key",
"cardIdentifier": "card identifier"
}
},
"transactionId": "unique transaction id",
"amount": transaction amount,
"currency": "currency type"
}
The 'Content-Type' header should be 'application/json' and you should select 'JSON' for the 'Body Type'. Remember to replace 'your session key', 'card identifier', 'unique transaction id' and 'transaction amount' with the actual information.
Step 15: Next you can define a GET method if you want your app to be able to check transaction status. The URL for this will be typically like: 'https://pi-test.sagepay.com/api/v1/transactions/{TransactionId}'. Remember to replace '{TransactionId}' with the actual Transaction ID.
Step 16: Click on the "Initialize the call" button. If everything is set up correctly, this call will be successful and ready to use in your app.
Step 17: Now you are ready to make these API calls in your Bubble.io workflows. For example, when a user clicks on a 'Pay Now' button, you can create a workflow that makes a 'POST' API call to Sage Pay.
Conclusively, this guide has demonstrated how you can integrate Sage Pay with Bubble.io. It involved configuring the API in both Sage Pay and Bubble.io, and then using these API calls in your Bubble.io app. This will allow your Bubble.io app to process payments using Sage Pay.
Scenario: An online furniture retailer wants to improve its customer checkout experience and secure its payment process. They use Bubble.io to build a dynamic and user-friendly ecommerce website where customers can browse and purchase their products. To ensure a seamless and secure payment process, they want to integrate Sage Pay as the website's payment system.
Solution: Integrating Bubble.io with Sage Pay
Website Creation: The retailer uses Bubble.io to create an intuitive and responsive ecommerce website. This includes product catalogues, shopping carts, and a checkout interface where customers can enter their billing information.
Setting Up the Integration: The retailer installs the Sage Pay plugin in Bubble.io and configures it with their Sage Pay API key. They set up workflows in Bubble.io that trigger during the checkout process.
Checkout Workflow: When a customer proceeds to checkout, the workflow is activated. The customer's shopping cart details and billing information are sent securely to Sage Pay via the configured plugin action. The payment is processed through Sage Pay, providing customers with safe and various payment options.
Payment Confirmation: Once the payment is successful, Sage Pay sends a confirmation to Bubble.io. Bubble.io then updates the order status and sends a receipt to the customer's email.
Order Processing and Fulfillment: The retailer's order management system is updated with the new order details. The team can then prepare and ship the ordered items.
Seamless User Experience: The integration creates a smooth checkout experience for customers, reducing instances of abandoned carts and increasing overall sales.
Benefits:
Security: Sage Pay provides robust security features that protect sensitive customer payment data, reducing the risk of fraud.
Improved Checkout Experience: The integration streamlines the checkout process, making it easy for customers to make a purchase quickly and effectively.
Automated Payment Processing: The automation reduces manual intervention in the payment process, saving time for the team.
Scalability: As the online retailer's business grows, the integated system is capable of handling increased traffic and transactions without compromising performance or security.
By integrating Bubble.io with Sage Pay, the online furniture retailer offers a secure and seamless shopping experience to its customers, enhancing customer satisfaction and driving more sales.
Delve into comprehensive reviews of top no-code tools to find the perfect platform for your development needs. Explore expert insights, user feedback, and detailed comparisons to make informed decisions and accelerate your no-code project development.
Discover our comprehensive WeWeb tutorial directory tailored for all skill levels. Unlock the potential of no-code development with our detailed guides, walkthroughs, and practical tips designed to elevate your WeWeb projects.
Discover the best no-code tools for your projects with our detailed comparisons and side-by-side reviews. Evaluate features, usability, and performance across leading platforms to choose the tool that fits your development needs and enhances your productivity.
Then all you have to do is schedule your free consultation. During our first discussion, we’ll sketch out a high-level plan, provide you with a timeline, and give you an estimate.