Closed umarpucitian closed 1 year ago
@umarpucitian
A little more details would be helpful:
P.S. Even a screenshot would come in handy.
@alexstewartja I am facing the error shown in the screenshot, php and laravel version are highlighted in screenshot. I am using windows. I am facing this issue while creating the invoice. Adding code for function also
` $invoice = LaravelBitpay::Invoice(449.99, "USD"); // Always use the BitPay Currency model to prevent typos
// Set item details (Only 1 item per Invoice) $invoice->setItemDesc('You "Joe Goldberg" Life-Size Wax Figure'); $invoice->setItemCode('sku-1234'); $invoice->setPhysical(true); // Set to false for digital/virtual items
// Ensure you provide a unique OrderId for each Invoice $invoice->setOrderId(12);
$invoice = LaravelBitpay::createInvoice($invoice); // I am getting mentioned error here
$invoiceId = $invoice->getId();
$invoiceToken = $invoice->getToken();
// Redirect user to the Invoice's hosted URL to complete payment $paymentUrl = $invoice->getUrl(); return Redirect::to($paymentUrl); `
@umarpucitian
Did you follow the exact instructions of the Generate Key-Pair and API Token(s) step, ensuring you approve the generated token on your BitPay dashboard?
Closing this, under the assumption that my last suggestion resolved your issue.
I am getting this error while setting up my local test environment for bitPay. Please help me out with this I wanna integrate this in Pakistan and bitpay is not available in our country so I am using proxy credentials to call the bitPay server
BITPAY-INVOICE-CREATE: Failed to create invoice-> failed to serialize Invoice object : failed to retrieve HTTP response body : Unauthorized sin