polish_payments_api
  • Welcome
  • Installation & Requirements
  • Basic info
  • Online payments
    • SimPay transfer/paysafecard/blik/paypal
    • SimPay direct billing
    • HotPay transfer & paysafecard
    • HotPay mobile (direct billing/premiumrate)
    • CashBill transfer & paysafecard
    • Paybylink transfer
    • Paybylink paysafecard
    • Paybylink direct billing
    • Dpay transfer
    • Dpay direct billing
    • Dotpay transfer
    • OpenPayU transfer
    • iMoje transfer
    • Przelewy24 transfer
    • MicroSMS transfer
  • SMS Premium
    • Basic info
    • CashBill SMS
    • GetPay SMS
    • HotPay SMS
    • MicroSMS SMS
    • Paybylink SMS
    • SimPay SMS
Powered by GitBook
On this page
  1. Online payments

Dpay direct billing

Base:

$dpay = $payment->online(
    new DpayDirectbillingPayment(
        'guid (service id from dpay panel)', 
        'secretKey'
    )
);

Generate payment:

$dpay->setAmount(1.23);
$dpay->setSuccessUrl('https://google.com');
$dpay->setFailUrl('https://google.com');
$dpay->setCustom('customParameter');

$dpayPayment = $dpay->generatePayment();
$dpayPayment->getTransactionId(); //transaction id
$dpayPayment->getTransactionUrl(); //transaction url
PreviousDpay transferNextDotpay transfer

Last updated 2 years ago