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

getJson() public static method

Gets Json String of Object ShippingAddress
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"id":"TestSample","recipient_name":"TestSample","default_address":true}';
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Gets Json String of Object ItemList
  *
  * @return string
  */
 public static function getJson()
 {
     return '{"items":' . ItemTest::getJson() . ',"shipping_address":' . ShippingAddressTest::getJson() . ',"shipping_method":"TestSample","shipping_phone_number":"TestSample"}';
 }
All Usage Examples Of PayPal\Test\Api\ShippingAddressTest::getJson