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

getJson() public static method

Gets Json String of Object FundingSource
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"funding_mode":"TestSample","funding_instrument_type":"TestSample","soft_descriptor":"TestSample","amount":' . CurrencyTest::getJson() . ',"negative_balance_amount":' . CurrencyTest::getJson() . ',"legal_text":"TestSample","terms":"TestSample","funding_detail":' . FundingDetailTest::getJson() . ',"additional_text":"TestSample","links":' . LinksTest::getJson() . '}';
    }

Usage Example

Example #1
0
 /**
  * Gets Json String of Object FundingOption
  *
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","funding_sources":' . FundingSourceTest::getJson() . ',"backup_funding_instrument":' . FundingInstrumentTest::getJson() . ',"currency_conversion":' . CurrencyConversionTest::getJson() . ',"installment_info":' . InstallmentInfoTest::getJson() . ',"links":' . LinksTest::getJson() . '}';
 }