Getting order and buyer objects reference for custom gateway.
Hi,
I'm modifying a cone of /vantage/order-select.php file for my custom gateway. My implementation is very simple, since I'm new to php still.
What I need now is to get access to
order data ($order) and
claimer or
buyer data so as to send such data (like buyer ID, listing ID, price, buyer email) to the payments system provider. So far, I've tried this code of my own:
Code:
<?php $orderpayulatam = get_order( $order_id ); ?>
It works fine, since I do get access to such order data like plan description or currency in this way:
Code:
<?php echo $orderpayulatam->get_description() ?>
<?php echo $orderpayulatam->get_currency() ?>
First, I don't know if the above lines are the best approach to get an order object reference and data.
Second, I haven't found out yet how to get a buyer or claimer object reference to read his/her email.
Any help greatly appreciated.
Last edited by modima65; April 19th, 2015 at 04:38 PM.
Reason: Title error.