For bug reporting only! If you're posting a feature request or discussion, please ignore.
Expected Behavior
When we create a usage using the code below it should redirect and
The package will take care of issuing the charge, storing it in the database, and redirection.
`# App/Http/Controllers/Example
# ...
public function index()
{
// Description and price of usage charge (the only two parameters required)
$charge = [
'description' => 'Five e-mails',
'price' => 1.00,
'redirect' => route('example.success') // Optional, if not supplied redirect goes back to previous page with flash `success`=`true`
];
// Create a signature to prevent tampering
$signature = Util::createHmac(['data' => $charge, 'buildQuery' => true], Config::get('shopify-app.api_secret'));
// Create the route
$usageChargeRoute = route('billing.usage_charge', array_merge($charge, ['signature' => $signature->toNative()]));
return view('example.index', compact('usageChargeRoute'));
}`
Current Behavior
It is giving error
"error": "Call to undefined method Illuminate\Http\RedirectResponse::getMessage()",
For bug reporting only! If you're posting a feature request or discussion, please ignore.
Expected Behavior
When we create a usage using the code below it should redirect and The package will take care of issuing the charge, storing it in the database, and redirection.
Current Behavior
It is giving error
"error": "Call to undefined method Illuminate\Http\RedirectResponse::getMessage()",
Failure Information
Package Version: ^17.4 Laravel Version: ^8.83 PHP Version: 8.1.15
Steps to Reproduce
Failure Logs