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

getJson() public static method

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

Usage Example

Example #1
0
 /**
  * Gets Json String of Object Refund
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","amount":' . AmountTest::getJson() . ',"state":"TestSample","reason":"TestSample","sale_id":"TestSample","capture_id":"TestSample","parent_payment":"TestSample","description":"TestSample","create_time":"TestSample","update_time":"TestSample","links":' . LinksTest::getJson() . '}';
 }
All Usage Examples Of PayPal\Test\Api\AmountTest::getJson