File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,9 @@ $data = [
8484 ],
8585];
8686
87- $response = $gateway->authorize($data)->send()->getData();
87+ $request = $gateway->authorize($data);
88+
89+ $response = $response->send();
8890```
8991This will return the order details as well as the checkout HTML snippet to render on your site.
9092
@@ -93,13 +95,14 @@ This will return the order details as well as the checkout HTML snippet to rende
9395### Status
9496
9597``` php
96- $success = $gateway->fetchTransaction([
98+ $request = $gateway->fetchTransaction([
9799 'ContractProfileId' => '85cf0581-36e2-45c7-8d8c-a24c6f52902c',
98100 'AmountInCents' => 1337,
99101 'CurrencyCode' => 'EUR',
100102 'Reference' => '829c7998-6497-402c-a049-51801ba33662',
101- ])->send()
102- ->isSuccessful();
103+ ]);
104+
105+ $response = $request->send();
103106```
104107
105108[ API documentation] ( https://icepay2.docs.apiary.io/#reference/0/transaction )
@@ -108,13 +111,14 @@ $success = $gateway->fetchTransaction([
108111* Do note: refunds have not been tested in production*
109112
110113``` php
111- $success = $gateway->refund([
114+ $request = $gateway->refund([
112115 'ContractProfileId' => '85cf0581-36e2-45c7-8d8c-a24c6f52902c',
113116 'AmountInCents' => 1337,
114117 'CurrencyCode' => 'EUR',
115118 'Reference' => '829c7998-6497-402c-a049-51801ba33662',
116- ])->send()
117- ->isSuccessful();
119+ ]);
120+
121+ $response = $request->send();
118122```
119123
120124[ API documentation] ( https://icepay2.docs.apiary.io/#reference/0/transaction/refund )
You can’t perform that action at this time.
0 commit comments