diff --git a/samples/retrieve_card_from_ivr.php b/samples/retrieve_card_from_ivr.php new file mode 100644 index 0000000..ddb391f --- /dev/null +++ b/samples/retrieve_card_from_ivr.php @@ -0,0 +1,12 @@ + '45f12c74-3000-465c-96dc-876850e7dd7a', + 'callToken' => '0309ac2d-c5a5-4b4f-a91f-5c444ba07b24', +); + +$response = SampleConfig::craftgate()->payment()->retrieveCardFromIvr($request); + +print_r($response); diff --git a/src/Adapter/PaymentAdapter.php b/src/Adapter/PaymentAdapter.php index 113a4ee..8dd8762 100644 --- a/src/Adapter/PaymentAdapter.php +++ b/src/Adapter/PaymentAdapter.php @@ -301,6 +301,12 @@ public function retrieveProviderCards(array $request) return $this->httpGet($path); } + public function retrieveCardFromIvr(array $request) + { + $path = "/payment/v1/ivr-cards" . QueryBuilder::build($request); + return $this->httpGet($path); + } + public function is3DSecureCallbackVerified($threeDSecureCallbackKey, $params) { $hash = $params["hash"];