jpelayo
Forum Replies Created
-
This was needed for it to work:
echo self::generate_invoice_number($order,false);
instead of
echo self::generate_invoice_number($order,$force_generate);
in the function
public function add_invoice_column_value($column)
of invoice.php
Code corrected, better at line 407 and 441 :
‘
$payment_method=$order->get_payment_method();
$excluded_methods = array( ‘cod’, ‘bacs’ );
if(in_array( $payment_method, $excluded_methods )){
$invoice_creation = 0;
}
‘But, anyway,… it does not work.
Solved.
I cancelled a payments contract already running within the paypal sandbox client user.
Then I made the purchase procedure again, a new agreement was created in paypal and a vault was created in the site, and everything works for subscription renewals.
There should be some kind of “ongoing payments agreement” detector in order to give some kind of warning that the vault won’t be created until a running agreement is cancelled.
Thanks anyway.
Cheers,
JPYes, it was empty.
Report sent via support form.Thank you!
It seems that no tokens nor endpoints are created, as
https://www.sandbox.paypal.com/myaccount/ppcp-paypal-payment-tokens/
gives a 404 in a logged browser (I don’t know how to make the call otherwise, sorry).Thanks.