Đây là biểu mẫu, bạn có thể sử dụng cho hội nhập của PAY U, thanh toán gatway,
<form method="post" action="https://secure.payu.com/api/v2_1/orders">
<input type="hidden" name="continueUrl" value="http://shop.url/continue" >
<input type="hidden" name="currencyCode" value="PLN" >
<input type="hidden" name="customerIp" value="123.123.123.123" >
<input type="hidden" name="description" value="Order description" >
<input type="hidden" name="merchantPosId" value="145227" >
<input type="hidden" name="notifyUrl" value="http://shop.url/notify" >
<input type="hidden" name="products[0].name" value="Product 1" >
<input type="hidden" name="products[0].quantity" value="1" >
<input type="hidden" name="products[0].unitPrice" value="1000" >
<input type="hidden" name="totalAmount" value="1000" >
<input type="hidden" name="OpenPayu-Signature" value="sender=145227;algorithm=MD5;signature=5fa8d94670eee6d182e930a0ccf9c2c6" >
<button type="submit" formtarget="_blank" >Pay with PayU</button>
</form >
bạn cần phải đảm bảo, nhận được tất cả các giá trị động như tên sản phẩm, giá cả, số lượng, vv. Ngoài ra, hãy kiểm tra thêm tại
http://developers.payu.com/en/restapi.html
Tôi dùng thử. Nhưng tôi không hiểu triết lý đó. Khi tôi sẽ có hình thức với hành động để trả tiền, tôi sẽ tiết kiệm đơn hàng như thế nào ở phía eshop. Điều thứ hai là, tôi muốn thực hiện thư viện ở trên, nhưng tôi không thể thực hiện bất kỳ tiến bộ nào. – tomasr
lấy bảng lưu trữ dữ liệu đơn đặt hàng của bạn với trạng thái thanh toán, trạng thái đang chờ xử lý trước khi thanh toán và cập nhật thành công sau khi thanh toán. – Priyank