Direct linking via API

Integration any website with CrossPayOnline, follow these steps.

Log in to the following link:

https://crosspayonline.com/api/loginBill?api_data=82e4b4fd3a16ad99229af9911ce8e6d2&apiKey=


1. Pay using credit card:

https://crosspayonline.com/api/createInvoiceByAccount?api_data=82e4b4fd3a16ad99229af9911ce8e6d2&invoice_id='.$order_id.'&apiKey='.$securty_codee.'&total='.$total_bill.'¤cy=USD&inv_details={"inv_items": [{"name": "Shoping from store","quntity": "1.00","unitPrice": "'.$total_bill.'","totalPrice": "'.$total_bill.'","currency": "USD"}],"inv_info":[{"row_title":"Vat","row_value":"0"},{"row_title":"Delevery","row_value":"0"},{"row_title":"Promo Code","row_value":0},{"row_title":"Discounts","row_value":0}],"user" :{"userName":"test"}}&return_url='.$re_url.'&email='.$c_email.'&mobile='.$c_mobile.'&name='.$c_name;
  1. api_data: 82e4b4fd3a16ad99229af9911ce8e6d2
  2. invoice_id: YOUR Invoice ID / Order ID and back to you in return url
  3. apiKey: key that set by merchant
  4. total: total amount
  5. currency: USD
  6. details: in json format sample:

    {"inv_items": [{"name": "Shoping from store","quntity": "1.00","unitPrice": "'.$total_bill.'","totalPrice": "'.$total_bill.'","currency": "USD"}],"inv_info":[{"row_title":"Vat","row_value":"0"},{"row_title":"Delevery","row_value":"0"},{"row_title":"Promo Code","row_value":0},{"row_title":"Discounts","row_value":0}],"user" :{"userName":"test"}}

  7. return_url: result back to your website
  8. email: Your customer email.
  9. mobile: Your customer mobile.
  10. Name: Your customer full name.

Using API,

The API should be used in href_link by passing your data to the link or submitting a form This api is used directly to the payment page via a header redirect.


2. Pay using paypal:

https://crosspayonline.com/api/createInvoiceByAccountPaypal?api_data=82e4b4fd3a16ad99229af9911ce8e6d2&invoice_id='.$order_id.'&apiKey='.$securty_codee.'&total='.$total_bill.'¤cy=USD&inv_details={"inv_items": [{"name": "Shoping from store","quntity": "1.00","unitPrice": "'.$total_bill.'","totalPrice": "'.$total_bill.'","currency": "USD"}],"inv_info":[{"row_title":"Vat","row_value":"0"},{"row_title":"Delevery","row_value":"0"},{"row_title":"Promo Code","row_value":0},{"row_title":"Discounts","row_value":0}],"user" :{"userName":"test"}}&return_url='.$re_url.'&email='.$c_email.'&mobail='.$c_mobile.'&name='.$c_name;
  1. api_data: 82e4b4fd3a16ad99229af9911ce8e6d2
  2. invoice_id: YOUR Invoice ID / Order ID and back to you in return url
  3. apiKey: key that set by merchant
  4. total: total amount
  5. currency: USD
  6. details: in json format sample:

    {"inv_items": [{"name": "Shoping from store","quntity": "1.00","unitPrice": "'.$total_bill.'","totalPrice": "'.$total_bill.'","currency": "USD"}],"inv_info":[{"row_title":"Vat","row_value":"0"},{"row_title":"Delevery","row_value":"0"},{"row_title":"Promo Code","row_value":0},{"row_title":"Discounts","row_value":0}],"user" :{"userName":"test"}}

  7. return_url: result back to your website
  8. email: Your customer email.
  9. mobile: Your customer mobile.
  10. Name: Your customer full name.

Using API,

The API should be used in href_link by passing your data to the link or submitting a form This api is used directly to the payment page via a header redirect.