pronamic / wp-pronamic-pay-buckaroo

Buckaroo driver for the WordPress payment processing library.
http://www.wp-pay.org/gateways/buckaroo/
3 stars 2 forks source link

Check `Services` property before using it. #8

Closed rvdsteege closed 2 years ago

rvdsteege commented 2 years ago

Resolves issue #7.

rvdsteege commented 2 years ago

The Services property in the response from Buckaroo can be null if there are no active payment methods for the Buckaroo account (see https://github.com/pronamic/wp-pronamic-pay-buckaroo/issues/7#issuecomment-1263279546).

Therefore, I changed the property_exists() call to a check for null value instead in https://github.com/pronamic/wp-pronamic-pay-buckaroo/pull/8/commits/ccfe0c4140664d5df21ade001ab4270840b95433.