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

getJson() public static method

Gets Json String of Object MerchantPreferences
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"id":"TestSample","setup_fee":' . CurrencyTest::getJson() . ',"cancel_url":"http://www.google.com","return_url":"http://www.google.com","notify_url":"http://www.google.com","max_fail_attempts":"TestSample","auto_bill_amount":"TestSample","initial_fail_amount_action":"TestSample","accepted_payment_type":"TestSample","char_set":"TestSample"}';
    }

Usage Example

Example #1
0
 /**
  * Gets Json String of Object Plan
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","name":"TestSample","description":"TestSample","type":"TestSample","state":"TestSample","create_time":"TestSample","update_time":"TestSample","payment_definitions":' . PaymentDefinitionTest::getJson() . ',"terms":' . TermsTest::getJson() . ',"merchant_preferences":' . MerchantPreferencesTest::getJson() . ',"links":' . LinksTest::getJson() . '}';
 }
All Usage Examples Of PayPal\Test\Api\MerchantPreferencesTest::getJson