PayPal\Test\Api\AmountTest::getJson PHP Méthode

getJson() public static méthode

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

Usage Example

Exemple #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