AirwallexCardInput.tsx 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. "use client";
  2. export default function AirwallexCardInput({
  3. cardNumberErrorMsg,
  4. expiryErrorMsg,
  5. cvcErrorMsg,
  6. } : {
  7. cardNumberErrorMsg: string;
  8. expiryErrorMsg: string;
  9. cvcErrorMsg: string;
  10. }) {
  11. return (
  12. <div id="airwallex-dropIn-card-container" className="w-full">
  13. <div className="w-full">
  14. <div id="airwallex_cardNumber" className="w-full border-1 border-ly-inputborder h-11.5"></div>
  15. {cardNumberErrorMsg && <p className="text-ly-12 text-ly-errorcolor">{cardNumberErrorMsg}</p>}
  16. </div>
  17. <div className="mt-3 flex justify-between gap-4">
  18. <div className="w-full">
  19. <div id="airwallex_expiry" className="w-full border-1 border-ly-inputborder h-11.5"></div>
  20. {expiryErrorMsg && <p className="text-ly-12 text-ly-errorcolor">{expiryErrorMsg}</p>}
  21. </div>
  22. <div className="w-full">
  23. <div id="airwallex_cvc" className="w-full border-1 border-ly-inputborder h-11.5"></div>
  24. {cvcErrorMsg && <p className="text-ly-12 text-ly-errorcolor">{cvcErrorMsg}</p>}
  25. </div>
  26. </div>
  27. <div className="mt-2 w-full flex items-center">
  28. <svg className="flex-none w-4.5 h-4.5 mr-2" xmlns="http://www.w3.org/2000/svg" width="1.4em" height="1.4em" viewBox="0 0 24 24" id="pci-svg">
  29. <path d="m18,8l-1,0l0,-2c0,-2.76 -2.24,-5 -5,-5s-5,2.24 -5,5l0,2l-1,0c-1.1,0 -2,0.9 -2,2l0,10c0,1.1 0.9,2 2,2l12,0c1.1,0 2,-0.9 2,-2l0,-10c0,-1.1 -0.9,-2 -2,-2zm-6,9c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2s2,0.9 2,2s-0.9,2 -2,2zm3.1,-9l-6.2,0l0,-2c0,-1.71 1.39,-3.1 3.1,-3.1c1.71,0 3.1,0.92125 3.1,2.84372l0,-0.78122l0,3.0375z"></path>
  30. </svg>
  31. <p className="text-ly-12 leading-ly-18">
  32. Your card details are protected using PCI DSS v3.2 security standards.
  33. </p>
  34. </div>
  35. </div>
  36. )
  37. }