Closed robertnicjoo closed 6 years ago
hi,
public function __construct(){
Veritrans::$serverKey = 'your-server-key'; --> change into production server key
Veritrans::$isProduction = false; ---> change into true.
}
did u mean the request json of production ?
the order was store in our database, the response you got wether the payment failed or success, is obtain from our db. if you want to store in your db, please create it your own
@harrypujianto thanks for respond,
1) my question was which controller and not which part of controller. you have SnapController , TransactionController , VtdirectController , VtwebController
2) No I didn't mean JSON if I use form <form action="vtdirect" method="POST" id="payment-form">
in this form sumbit button will have no action. As you also have several form in checkout.blade , snap_checkout.blade , transaction.blade which form should I use?
3) Yes I need to get info from your database such as request time and transaction code which i don't know how to get them from you, but my main question was that should I place my store code in your controllers (I mentioned in no.1) or I should place it in different controller? (if you have any live sample and can share part of code "storing" would be appreciate it).
Thanks a lot.
as for TransactionController contain the sample code how to use cancel API, get status API, expire API and capture API.
if u want to test snap, use snapControler, and snapcheckout.blade so does vtdirect and transaction
for further info about the product API please open these docs
hope that help
Hi,
I'm trying to get this application work on laravel 5.5, but I'm not sure how to do it exactly! Your document seems to mostly repeat whats in the files and not exactly helping to run the application. Here are my questions:
How use production mode (which one of your controllers handle that?)
How is structure of production form? because it seems button doesn't work on for example
<form action="vtdirect" method="POST" id="payment-form">
How do you store data on Database when user click on payment button (no matter payment is successful or not) it has to be stored in in
orders (whatevere the name is)
table how that will handle in your application forms?Thanks.