membuat form pembayaran
$nominal,
'paymentMethod' => 'SP', // ShopeePay QRIS
'merchantOrderId' => uniqid(),
'productDetails' => 'Pembayaran QRIS',
'customerVaName' => 'John Doe',
'email' => 'customer@example.com',
'phoneNumber' => '081234567890',
'callbackUrl' => 'https://iklan-segala-produk-bandung.blogspot.com/callback',
'returnUrl' => 'https://iklan-segala-produk-bandung.blogspot.com/return'
);
$response = $duitkuApi->createInvoice($invoiceRequest);
echo '
'; print_r($response); echo ''; } catch (Exception $e) { echo 'Error: ' . $e->getMessage(); } ?>
Komentar