PayPal\Test\Api\ItemListTest::getJson PHP 메소드

getJson() 공개 정적인 메소드

Gets Json String of Object ItemList
public static getJson ( ) : string
리턴 string
    public static function getJson()
    {
        return '{"items":' . ItemTest::getJson() . ',"shipping_address":' . ShippingAddressTest::getJson() . ',"shipping_method":"TestSample","shipping_phone_number":"TestSample"}';
    }

Usage Example

예제 #1
0
 /**
  * Gets Json String of Object CartBase
  * @return string
  */
 public static function getJson()
 {
     return '{"amount":' . AmountTest::getJson() . ',"payee":' . PayeeTest::getJson() . ',"description":"TestSample","note_to_payee":"TestSample","custom":"TestSample","invoice_number":"TestSample","soft_descriptor":"TestSample","payment_options":' . PaymentOptionsTest::getJson() . ',"item_list":' . ItemListTest::getJson() . ',"notify_url":"http://www.google.com","order_url":"http://www.google.com"}';
 }
All Usage Examples Of PayPal\Test\Api\ItemListTest::getJson