I have two websites developed with codeigniter.
Users can do shopping and add items to cart in website1.
When they press the 'Pay with PayPal' button, the form will be submitted to webite1's controller.
From that controller's method, I want to do some validation and send an array of data to website2's controller and make the payment from there (i.e website1's controller method).
All the libraries needed for PayPal are in website2.
How do I pass the array of data without using html forms from one website to another?