mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Ensure subscription product description does not exceed 127 characters
This commit is contained in:
parent
d3a02e79c5
commit
a13da931ed
2 changed files with 11 additions and 6 deletions
|
@ -83,13 +83,10 @@ class CatalogProducts {
|
|||
*/
|
||||
public function create( string $name, string $description ): Product {
|
||||
$data = array(
|
||||
'name' => $name,
|
||||
'name' => $name,
|
||||
'description' => $description ?: $name,
|
||||
);
|
||||
|
||||
if ( $description ) {
|
||||
$data['description'] = $description;
|
||||
}
|
||||
|
||||
$bearer = $this->bearer->bearer();
|
||||
$url = trailingslashit( $this->host ) . 'v1/catalogs/products';
|
||||
$args = array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue