sending id to PayPal

szabob 07 Jul, 2019
Hi All,

I want to use the id field as Paypal invoice number. This auto increment id is generated when the for data is saved in the database. However, after saving to the db it will not be in the from data array. So if i try {data:id} it will be empty.
The debug looks like this:
Array
(
    [save_data11] => Array
        (
            [data] => Array
                (
                    [created] => 2019-07-07 14:55:58
                    [payment_gateway] => 0
                    [id] => 
And further down:
            [var] => Array
                (
                    [created] => 2019-07-07 14:55:58
                    [payment_gateway] => 0
                    [id] => 1236

So how can I use the id in Paypal redirect ?
szabob 08 Jul, 2019
That is it ! Thank you !
szabob 10 Jul, 2019
Hi healyhatman,

I would have another question following on from here. How can I do the same in php format ?

$this->data['id'] obviously does not work.

Cheers, Bob
healyhatman 10 Jul, 2019
Answer
1 Likes
$this->get("save_data11.id")

data for field data. get for action data.
szabob 10 Jul, 2019
1 Likes
That again is perfect!
Thanks for the help; I have sent you money for a pint of beer.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger