In Sandbox Mode, I have my code is being tested. I tested successful in Create Billing plan > Update plan > Create Agreement > Execute Agreement(Subscription). But, The Response was not include responce_details.next_billing_date and responce_details.last_billing_date. (Index not found) What's wrong in my code? Here is my code => /********************************** Excecute Agreement *******************************************/ public function execute_agreement(Request $request) { if( $request->input('success') == 'true') { $token = $request->input('token'); $agreement = new Agreement(); try { $agreement->execute($token, $this->_api_context); } catch(Exception $ex) { echo "Agreement execute Exception : ".$ex; return redirect(url('/')); } try { Session::put('agreement_set',$agreement); $agreement = Agreement::get($agreement->getId(), $this->_api_context); } catch(Exception $ex1) { echo "Execute Agreement Error : ".$ex1; } $responce_details = $agreement->toArray(); } } /******************* Response from execute agreement *************************/ $responce_details['agreement_details'] = { "outstanding_balance": { "currency":"USD","value":"0.00" }, "cycles_remaining":"0", "cycles_completed":"0", "final_payment_date":"1970-01-01T00:00:00Z", "failed_payment_count":"0" } /*****************************************************************************/
... View more