We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a45386 commit 9a7cef3Copy full SHA for 9a7cef3
src/Client.php
@@ -142,6 +142,9 @@ public function getMerchantPaymentMethods($merchant)
142
143
public function getPaymentMethods($uri, $options = array())
144
{
145
+ if (!preg_match('!^https?://!', $uri)) {
146
+ $uri = $this->_endpoint . '/orders/' . $uri;
147
+ }
148
$this->initCurl($uri . '/payment_methods' . (count($options) > 0 ? '?' . http_build_query($options) : ''));
149
curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, 'GET');
150
curl_setopt($this->ch, CURLOPT_HTTPHEADER, array('Accept: text/html'));
0 commit comments