D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
dateitor
/
public_html
/
vendor
/
srmklive
/
paypal
/
tests
/
Mocks
/
Requests
/
Filename :
CatalogProducts.php
back
Copy
<?php namespace Srmklive\PayPal\Tests\Mocks\Requests; use GuzzleHttp\Utils; trait CatalogProducts { /** * @return array */ private function createProductParams(): array { return Utils::jsonDecode('{ "name": "Video Streaming Service", "description": "Video streaming service", "type": "SERVICE", "category": "SOFTWARE", "image_url": "https://example.com/streaming.jpg", "home_url": "https://example.com/home" }', true); } /** * @return array */ private function updateProductParams(): array { return Utils::jsonDecode('[ { "op": "replace", "path": "/description", "value": "Premium video streaming service" } ]', true); } }