开发者

credit card number and expiry date checking in java

开发者 https://www.devze.com 2023-02-27 03:22 出处:网络
In struts 1.3 , i have a payment.jsp, Credit Card Number. Credit Card Type. Card Holder Name. Expiration Date.

In struts 1.3 , i have a payment.jsp,

  • Credit Card Number.
  • Credit Card Type.
  • Card Holder Name.
  • Expiration Date.
  • CVV Number.
  • Comments.

The action form PaymentForm has the validations for the creditCardNumber as

!GenericValidator.isCreditCard(creditCardNumber)

, & expairy date开发者_运维问答 to select the MM & YYYY.

my question is , On submit button Then there should be an API (standard) which should validate the credit card details and process the payments. So which api i should use ?


You will need a (payed) subscription to a Payment Service Provider and use the API they possibly provide. Usually, you will need generate a URL and make a post with this URL.

0

精彩评论

暂无评论...
验证码 换一张
取 消