Skip to main content

How can I handle payments in a Bubble native mobile app?

Written by Sofia Maconi

How Can I Handle Payments in a Bubble Native Mobile App?

Handling payments in a Bubble native mobile app involves understanding the available options, their limitations, and compliance with app store policies. This article provides an overview of payment methods, guidelines for using external payment processors, and considerations for in-app purchases (IAP).

Overview of Payment Methods in Bubble Native Apps

Bubble native mobile apps do not natively support Apple App Store or Google Play in-app purchases (IAP). Instead, payments are handled through integrations with external payment providers. Here are the main approaches:

  • Bubble’s Payment Plugins: Some third-party plugins, such as Stripe plugins built for mobile, provide client-side elements and actions that are compatible with mobile workflows. These plugins appear in the mobile elements panel/workflows if they support mobile.

  • API Connector: Payments can also be implemented via backend/server-side calls using Bubble’s API Connector to integrate directly with providers like Stripe. Backend workflows generally work for both web and mobile apps.

When to Use In-App Purchases (IAP)

In-app purchases are required when:

  • Selling digital content or features within the app (e.g., subscriptions to digital content).

  • Apple and Google mandate the use of their billing systems for recurring subscriptions or digital goods sold within mobile apps.

For physical goods, real-world services, or payments completed outside the app (e.g., on a website), external payment processors like Stripe can be used.

Using External Payment Processors

External payment processors, such as Stripe, can be used for payments in Bubble native apps. However, there are important considerations:

  • WebView Approach: Build a payment page (e.g., Stripe Checkout) on your Bubble web app and open it in the native app via a WebView or in-app browser. After payment, users can return to the native app. This approach is suitable for one-time payments like physical goods, provided it complies with Apple and Google policies.

  • Policy Compliance: Using web-based payment processors for digital goods inside a native app may violate Apple and Google’s policies, which require their own payment systems for in-app digital purchases. Ensure compliance to avoid app rejection.

Compliance with App Store Policies

Apple App Store and Google Play Store have strict rules regarding payments for digital content:

  • In-app purchases must use the respective app store’s billing systems for digital goods.

  • External payment processors can be used for physical goods or permitted services, but exceptions are subject to app review.

Key Considerations

  • Not all payment plugins are mobile-compatible. If a plugin’s elements or actions don’t appear in the mobile editor, it isn’t mobile-ready.

  • Carefully review app store policies to ensure compliance when implementing payment methods.

Conclusion

Bubble native mobile apps offer flexibility in handling payments through external integrations like Stripe. However, understanding the limitations of IAP, the use cases for external payment processors, and compliance with app store policies is crucial for successful implementation. By following the guidelines outlined above, you can choose the best payment approach for your app’s needs.

Did this answer your question?