PayPal\Test\Api\AgreementTransactionTest::getJson PHP Method

getJson() public static method

Gets Json String of Object AgreementTransaction
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"transaction_id":"TestSample","status":"TestSample","transaction_type":"TestSample","amount":' . CurrencyTest::getJson() . ',"fee_amount":' . CurrencyTest::getJson() . ',"net_amount":' . CurrencyTest::getJson() . ',"payer_email":"TestSample","payer_name":"TestSample","time_stamp":"TestSample","time_zone":"TestSample"}';
    }

Usage Example

 /**
  * Gets Json String of Object AgreementTransactions
  * @return string
  */
 public static function getJson()
 {
     return '{"agreement_transaction_list":' . AgreementTransactionTest::getJson() . '}';
 }