Java Development payment (Card Payment)
Download and decompress
To get the jar package above, you don't have to worry about it. This is what we need. Yes, if you want to see the source code of this jar. This can also be found.
Continue, of course, as long as this jar is still not enough, the following third-party jar is required
You don't need to find them one by one. You can download them from my resources.
Focus on implementing payment
First, initialize some parameters.
There are no problems with the parameters. Certificate description
The. p12 path is used in the certificate path.
Then we will initiate a swipe payment request.
We need to instantiate this class first. This constructor contains some parameters for initiating payment.
Last call
Finally, a string is returned by TX.
Payment successful return_code return SUCCESS
Now it's over. Thank you!