Well done spotting that, Alan! Thanks for the additional info with the error you were seeing, and with your finding in the code.
Right, it should have been $intent. I don’t know why it said $charge… That would affect buy-now payments
I used $charge before but later changed it to $intent. I must have hit undo before saving, or I just zipped a previous version of the file.
Thank you very much for catching it. In my development site I had the right one, so I couldn’t spot it. I should have gone back to double-check the one in the zip. I guess no one else tried it with buy-nows, just subscriptions, that’s why only you saw it.
Okay. After changing it to $intent, how has it been working for you?
Yes, it will be in the next version.