nasrulhazim
1/12/2018 - 10:22 AM

CreateBill.php

<?php 

$collection = billplz()->collection()->createOpen(
    'Product Name',
    'Product Descrption',
    10000 // equivalent to RM 100
);
<?php 

$bill = billplz()->bill()->create(
    $collection->getContent()['id'],
    auth()->user()->email,
    null,
    auth()->user()->name,
    $fees,
    route('webhook.billplz.callback'), // need to define in route
    'Product Description', [
        'redirect_url' => route('webhook.billplz.redirect_url'), // need to define in route
    ]
);