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

getJson() public static method

Gets Json String of Object Payer
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"payment_method":"TestSample","status":"TestSample","account_type":"TestSample","account_age":"TestSample","funding_instruments":' . FundingInstrumentTest::getJson() . ',"funding_option_id":"TestSample","funding_option":' . FundingOptionTest::getJson() . ',"external_selected_funding_instrument_type":"TestSample","related_funding_option":' . FundingOptionTest::getJson() . ',"payer_info":' . PayerInfoTest::getJson() . '}';
    }

Usage Example

Example #1
0
 /**
  * Gets Json String of Object Agreement
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","state":"TestSample","name":"TestSample","description":"TestSample","start_date":"TestSample","payer":' . PayerTest::getJson() . ',"shipping_address":' . AddressTest::getJson() . ',"override_merchant_preferences":' . MerchantPreferencesTest::getJson() . ',"override_charge_models":' . OverrideChargeModelTest::getJson() . ',"plan":' . PlanTest::getJson() . ',"create_time":"TestSample","agreement_details":{"outstanding_balance":{"currency":"USD","value":"0.00"},"cycles_remaining":"12","cycles_completed":"0","next_billing_date":"2015-06-17T10:00:00Z","last_payment_date":"2015-03-18T20:20:17Z","last_payment_amount":{"currency":"USD","value":"1.00"},"final_payment_date":"2017-04-17T10:00:00Z","failed_payment_count":"0"},"update_time":"TestSample","links":' . LinksTest::getJson() . '}';
 }
All Usage Examples Of PayPal\Test\Api\PayerTest::getJson