Official libraries, plugins and API files to accept payments in minutes. Start in test mode, go live when you are ready.
composer require dzwallet/laravel-sdk$payment = DzWallet::initiatePayment([
'identifier' => $order->identifier,
'amount' => $order->total,
'details' => 'Order #' . $order->id,
'ipn_url' => route('dzwallet.ipn'),
'success_url' => route('thanks'),
'cancel_url' => route('cart'),
'site_name' => 'My shop',
'customer' => $customer, // first_name, last_name, email, mobile
]);
return redirect($payment->redirectUrl);composer require dzwallet/php-sdk$dz = new \DzWallet\Sdk\Client([
'mode' => 'test',
'public_key' => getenv('DZWALLET_PUBLIC_KEY'),
'secret_key' => getenv('DZWALLET_SECRET_KEY'), // server side only
]);
$payment = $dz->initiatePayment([
'identifier' => $order['identifier'],
'amount' => $order['total'],
'details' => 'Order #' . $order['id'],
'ipn_url' => 'https://yourshop.dz/dzwallet-ipn.php',
'success_url' => 'https://yourshop.dz/thanks',
'cancel_url' => 'https://yourshop.dz/cart',
'site_name' => 'My shop',
'customer' => $customer, // first_name, last_name, email, mobile
]);
header('Location: ' . $payment->redirectUrl);npm install dzwallet-nodeconst { DzWallet } = require('dzwallet-node');
const dz = new DzWallet({
mode: 'test',
publicKey: process.env.DZWALLET_PUBLIC_KEY,
secretKey: process.env.DZWALLET_SECRET_KEY, // server side only
});
const payment = await dz.initiatePayment({
identifier: order.identifier,
amount: order.total,
details: `Order #${order.id}`,
ipn_url: 'https://yourshop.dz/dzwallet/ipn',
success_url: 'https://yourshop.dz/thanks',
cancel_url: 'https://yourshop.dz/cart',
site_name: 'My shop',
customer, // { first_name, last_name, email, mobile }
});
res.redirect(payment.redirectUrl);pip install dzwalletfrom dzwallet import DzWallet
dz = DzWallet(
mode="test",
public_key=os.environ["DZWALLET_PUBLIC_KEY"],
secret_key=os.environ["DZWALLET_SECRET_KEY"], # server side only
)
redirect_url, identifier = dz.initiate_payment(
identifier=order.identifier,
amount=order.total,
details=f"Order #{order.id}",
ipn_url="https://yourshop.dz/dzwallet/ipn",
success_url="https://yourshop.dz/thanks",
cancel_url="https://yourshop.dz/cart",
site_name="My shop",
customer=customer, # first_name, last_name, email, mobile
)
return redirect(redirect_url)Official package for Laravel 10, 11 and 12: payments, signed IPN route, events.
composer require
dzwallet/laravel-sdkPlain PHP 7.4+ client, no framework needed.
composer require
dzwallet/php-sdkNode 18+ client with TypeScript types and an Express example.
npm install
dzwallet-nodeCheckout page and payment status checker for mobile apps. The secret key stays on your server.
WordPress plugin: DzWallet appears as a payment method at checkout.
PrestaShop module with signed IPN and order confirmation.