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

getJson() public static method

Gets Json String of Object Details
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"subtotal":"12.34","shipping":"12.34","tax":"12.34","handling_fee":"12.34","shipping_discount":"12.34","insurance":"12.34","gift_wrap":"12.34","fee":"12.34"}';
    }

Usage Example

Example #1
0
 /**
  * Gets Json String of Object Amount
  *
  * @return string
  */
 public static function getJson()
 {
     return '{"currency":"TestSample","total":"12.34","details":' . DetailsTest::getJson() . '}';
 }