Issue with Donation Details Update #7187
-
Hi there, I've developed a module to programmatically create subscriptions, and the creation process has been successful. However, I encountered an issue when attempting to update the related donation's payment type and other details. I utilized the following module as a reference for subscription creation: Subscription.php. Below is the relevant portion of my code:
As observed in the provided code, I utilized the Screenshot of the current donation result I have, image 1, image 2 I would greatly appreciate any guidance or assistance on this matter. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @8verstudio-Chua You will want replace your usage of our legacy class Here's an example direction taken from your code:
|
Beta Was this translation helpful? Give feedback.
Hey @8verstudio-Chua
You will want replace your usage of our legacy class
Give_Payment
with the Donation model as it looks like you are trying to use the donation model api with the legacy Give_Payment class which would not work.Here's an example direction taken from your code: