Hi,
As the code
--------------------
$agreement = new Agreement(); $agree = $agreement->execute($token, $apicontext); if($agree){ DB::start(); --------- DB::commit() // save the agreement_it to our database. }
if there are unexpected errors such as net error or server restart,we had lost the agreement_id,but the webhook only notices billing_agreement_id and resource_id,how can I match the agreement_id to the my transaction_id in my database.
I did not know which user created the plan and agreement.
... View more