Skip to content

Commit e98c2e3

Browse files
committed
Added x_relay_always as specified in new Authorize.Net API guide. Test needed for this.
1 parent 221f8df commit e98c2e3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Message/DPMAuthorizeRequest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ public function getData()
2323

2424
unset($data['x_show_form']);
2525

26+
// Must be set for DPM.
27+
// This directs all errors to the relay response.
28+
29+
$data['x_relay_always'] = 'TRUE';
30+
2631
// The card details are optional.
2732
// They will most likely only be used for development and testing.
2833
// The card fields are still needed in the direct-post form regardless.

tests/DPMGatewayTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ public function testCompleteAuthorizeWrongAmount()
7676
);
7777

7878
$response = $this->gateway->completeAuthorize($this->options)->send();
79-
//$this->assertTrue($response->isSuccessful());
80-
//$this->assertSame('12345', $response->getTransactionReference());
81-
//$this->assertNull($response->getMessage());
8279
}
8380

8481
public function testPurchase()

0 commit comments

Comments
 (0)