Skip to main content

Receive a Billease payment

Learn how to receive a billease payment from your customer.

The Billease payment method is a buy now, pay later payment method type through Billease. To complete a Billease payment, your customer should select Billease as the payment method and complete the Billease checkout step.

The Billease payment flow

At checkout, your customer can select Billease as the preferred payment method. Once your customer clicks the pay button, Billease will handle your customer's transaction within their checkout page, and your customer must complete the checkout step. Billease facilitates its checkout step. PayRex facilitates the Billease transaction by rendering the checkout page provided by Billease.

Low-code integration

PayRex offers a low-code solution that gives you more payment integration control.

  • Checkout: This lets you redirect your customers to a PayRex-hosted checkout page.
  • Elements: A UI component that you can embed into your website. When your customer is ready to complete a purchase, you create a PaymentIntent and configure how you want to display payment methods.

Receiving a Billease payment

To receive a Billease payment, you must specify that you allow a Billease payment when creating a payment intent. The example below is for payment intent workflow.

create_payment_intent.js
// Protect your PayRex Secret API key at all costs. One common approach
// to store it in an environment variable.
// Add your PayRex test secret API key.
const payrexSecretApiKey = '';

const payrex = require('payrex-node')(payrexSecretApiKey);

// Create a PaymentIntent with amount and currency
const paymentIntent = await payrex.paymentIntents.create({
// Amount is in cents. The sample below is 100.00.
amount: 10000,
currency: 'PHP',
payment_methods: [
'billease',
// add more payment methods if this is your preference
],
});

const output = {
clientSecret: paymentIntent.clientSecret,
}

console.log(JSON.stringify(output));

Once you specify the billease string, PayRex will handle the rest of your customer's payment flow.