Payment Blocks

Updated: June 8, 2021

Collect payments from end-users inside your apps. Payment Blocks use Stripe or LawPay, two of the leading payment processing companies in the world.

Integration with Stripe or LawPay

You can use Stripe and / or LawPay to collect payments inside of apps with Payment Blocks. In either case, setup is a two-step process:

  1. Create a Stripe / LawPay account on their respective websites;
  2. Connect Stripe / LawPay to your Afterpattern account.

Connect Stripe / LawPay to your Afterpattern under Account Settings > Integrations:

Adding Payment Blocks

Payment Blocks are a type of Page Block, so simply click 'Add Block' and select 'Payment.' After you add a Payment Block, you can select whether you want to collect the payment via Stripe or LawPay.

Note: Stripe requires the amount charged to the end-user to be at least 50 cents. Smaller amounts will cause an error.

Testing payment

Testing Payment Blocks is slightly different between Stripe and LawPay:

Testing Stripe

Use a test credit card number.

If your app is in Test Mode, all Payment Block payments will be submitted to Stripe as test data. In your Stripe dashboard, you view test data by clicking on this toggle

Testing LawPay

When your App is in Test Mode, all payments will be submitted to LawPay as test data. Unfortunately, you will not see this test data in your LawPay account. However, you will know that the test has been successful if you're able to enter a Test Credit Card and advance beyond the Payment Block.

Test Credit Card numbers can be found here for each card type.

Change currency

If you use Stripe, you can change the payment currency directly on the Payment Block. You can not change the currency if you use LawPay.

Frequently Asked Questions

Don't see your question? Get support.

On this page

Hire an Afterpattern expert

Go from idea to launch in weeks.

View services