sirumobile/payum-siru-bundle
Payum payment gateway bundle for Siru Mobile, letting PHP applications accept mobile payments charged to the customer's phone bill. It wires Siru into Payum's unified gateway API, so Siru can be added as a payment method alongside existing gateways with minimal configuration.
composer require payum/sirubundle (0.1.0 is the first release; verify the exact package name and Laravel version constraints on Packagist before adopting).config/app.php and add the facade/alias if provided.php artisan vendor:publish --tag=siru-config. Check config/siru.php for merchant ID, secret, sandbox/production mode, and callback URLs..env:
SIRU_MERCHANT_ID=
SIRU_SECRET=
SIRU_MODE=sandbox
SIRU_CALLBACK_URL=https://your-app.test/payments/siru/callback
config/siru.php, the service provider, and any Payum gateway factory class. Payum conventions (GatewayInterface, Capture, Status) will likely drive the API even if the Laravel wrapper is thin.$payment = Siru::createPayment([
'amount' => 1990,
'currency' => 'EUR',
'order_id' => $order->id,
'phone' => $request->phone,
'description' => 'Order #'.$order->id,
]);
return redirect($payment->getTargetUrl());
new, pending, captured, failed, canceled) to your application’s order states. Do not assume the browser return URL alone confirms payment — always confirm via callback or server-to-server query.SiruPaymentService) so that future API changes in 0.1.x do not leak into controllers.composer.json until the API stabilises.hash_equals). Never trust the browser return URL alone..env values, run php artisan config:clear (and config:cache in production). Stale config is a common source of “wrong merchant” errors.GatewayFactory, HttpClient, and action extensions directly. Check the package’s service provider for how the gateway is constructed; that is usually the easiest place to override behaviour.php artisan about or by resolving the gateway from the container.How can I help you explore Laravel packages today?