API: Payment Providers
$padloper->getActivePaymentProviders()
Get lists of shop's active payment providers and their values/settings.
WARNING
Not for public use as may contain API keys!
$padloper->isShopAcceptsInvoicePayments()
Check if the shop accepts invoice payments. Invoice payment gateway is in-built. This will return true if Invoice Payment is activated, else false.
// check if shop accepts invoice payments
/** @var bool $isAcceptInvoicePayments */
$isAcceptInvoicePayments = $padloper->isShopAcceptsInvoicePayments();
$out = !empty($isAcceptInvoicePayments) ? "Invoice payments welcome!" : "Sorry, cash in advance only";
echo $out;
1
2
3
4
5
2
3
4
5
output: Sorry, cash in advance only
INFO
This method is not meant for public use.