Widgets

Accept payments and Tokenize your cards securely to maintain PCI Compliance. 

{WIDGETS}

For a sandbox account please send a request to support@paidyet.com

Card On File Request

To use PaidYET’s secure card widget to get a card on file, you will need to follow these steps:

1. Include PaidYET’s javascript library

  <script src="https://cdn.paidyet.com/paynowv3.js"></script>

2. Create HTML placeholder where you want the credit card fields to appear

    <div id="card-element-cof" ></div >
    <div id="card-errors" ></div >

3. Initiate the card fields for a card on file request.

    PaidYET.init('{paypage subdomain}');
    PaidYET.renderCOFForm('card-element-cof');

4. Submit card information and handle results.

  
   PaidYET.processPayment(function (e) {
       if (e.success) {
         alert('card type: '+e.type+' token: '+e.token);
       }
    });

Credit Card Payment

To use PaidYET’s secure card widget to receive a payment, you will need to follow these steps:

1. Include PaidYET’s javascript library

  <script src="https://cdn.paidyet.com/paynowv3.js"></script>

2. Create HTML placeholder where you want the credit card fields to appear

    <div id="card-element-cof" ></div >
    <div id="card-errors" ></div >

3. Initiate the card fields for a payment.

    PaidYET.init('{paypage subdomain}');
    PaidYET.renderForm('card-element-cof');

4. Submit card information and handle results.

  
   PaidYET.processPayment(function (e) {
       if (e.success) {
         alert('Successful Payment');
       }
    });