getJson() public static method

Gets Json String of Object Transaction
public static getJson ( ) : string
return string
示例#1
0
 /**
  * Gets Json String of Object Payment
  *
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","intent":"TestSample","payer":' . PayerTest::getJson() . ',"potential_payer_info":' . PotentialPayerInfoTest::getJson() . ',"payee":' . PayeeTest::getJson() . ',"cart":"TestSample","transactions":[' . TransactionTest::getJson() . '],"failed_transactions":' . ErrorTest::getJson() . ',"billing_agreement_tokens":["TestSample"],"credit_financing_offered":' . CreditFinancingOfferedTest::getJson() . ',"payment_instruction":' . PaymentInstructionTest::getJson() . ',"state":"TestSample","experience_profile_id":"TestSample","note_to_payer":"TestSample","redirect_urls":' . RedirectUrlsTest::getJson() . ',"failure_reason":"TestSample","create_time":"TestSample","update_time":"TestSample","links":' . LinksTest::getJson() . '}';
 }
示例#2
0
 /**
  * Gets Json String of Object PaymentExecution
  * @return string
  */
 public static function getJson()
 {
     return '{"payer_id":"TestSample","transactions":[' . TransactionTest::getJson() . ']}';
 }
 /**
  * Gets Json String of Object Payment
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","intent":"TestSample","payer":' . PayerTest::getJson() . ',"payee":' . PayeeTest::getJson() . ',"cart":"TestSample","transactions":' . TransactionTest::getJson() . ',"failed_transactions":' . ErrorTest::getJson() . ',"payment_instruction":' . PaymentInstructionTest::getJson() . ',"state":"TestSample","experience_profile_id":"TestSample","redirect_urls":' . RedirectUrlsTest::getJson() . ',"create_time":"TestSample","update_time":"TestSample","links":' . LinksTest::getJson() . '}';
 }