Skip to main content

Method to obtain other available payment methods

To check the availability of other APMs, you can use a Revup offered endpoint, which responds with an array containing all the correctly configured APMs compatible with the order.

The merchant-associated data will be obtained from the initial configuration when the SDK is instantiated.

In the case that we don’t have configured APMs, it will return with an informative message:

const apmsAvailable = await apmsSdk.getApmsAvailableByMerchant();

// apmsAvailable:
{
apms: ['apple_pay', 'stripe_link', ....]
}

// apmsAvailable (no APM available):
{
message: "APM not found"
}