B
B
Billflow
Search…
B
B
Billflow
Quick Start
Setup
First Time Setup
Billing Pages
Plan Picker
Checkout Form
Customer Portal
Pricing Page
Invoice Portal
How-to's
Setup Pricing
Connect to SaaS
Change Style
Update Pricing
Use Coupons
Enable Quantity Management
Enterprise Sales Flow
Cancellations/Payment Failures
Automated emails
Internationalization
Upgrade to new Billing Pages
Record Usage
VAT & Taxes
Indian Recurring Payments
No-code Integrations
No-code App Builders
Bubble
Webflow
WordPress
Add Widgets
Advanced Usage
Useful Plugins
Notion
Drupal
Rewardful
ChurnKey
Developer Docs
Embed Configurations
Handling Events
Languages & Frameworks
Customize Elements
Versions & Beta Testing
Help
Managing Account & Team
Frequently Asked Questions
Changelog
Powered By
GitBook
Advanced Usage
APIs
Add Custom Frontend logics
Implement this function allows you to implement frontend logics that will run after after subscription creation.
How?
Define the following function in any of your js files, such as in your custom theme files, and implement any logic you’d like within the body.
1
window
.
billflow_wp_handle_response
=
function
myHandleResponseFunction
(
{
event
,
response
,
extras
}
){
2
// your custom handling logic goes here
3
console
.
log
(
'called servicebot_wp_handle_response'
,
response
)
4
console
.
log
(
'event:'
event
)
5
}
Copied!
Param
Description
event (string)
'create_subscription'
response (object)
The Stripe
subscription object
​
extras (object)
Contains extra information from the Billflow frontend
​
Previous
Add Widgets
Next
Useful Plugins
Last modified
1yr ago
Copy link
Contents
APIs
Add Custom Frontend logics