Skip to content

Commit 7366bad

Browse files
authored
Merge pull request #1 from kpeu3u/fix-application_fee_amount
fix application_fee_amount
2 parents 2081249 + 7eca2cc commit 7366bad

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Message/AuthorizeRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public function getData()
316316
}
317317

318318
if ($this->getApplicationFee()) {
319-
$data['application_fee'] = $this->getApplicationFeeInteger();
319+
$data['application_fee_amount'] = $this->getApplicationFeeInteger();
320320
}
321321

322322
if ($this->getTransferGroup()) {

src/Message/PaymentIntents/AuthorizeRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function getData()
355355
}
356356

357357
if ($this->getApplicationFee()) {
358-
$data['application_fee'] = $this->getApplicationFeeInteger();
358+
$data['application_fee_amount'] = $this->getApplicationFeeInteger();
359359
}
360360

361361
if ($this->getTransferGroup()) {

tests/Message/AuthorizeRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testGetData()
3939
$this->assertSame('Order #42', $data['description']);
4040
$this->assertSame('false', $data['capture']);
4141
$this->assertSame(array('foo' => 'bar'), $data['metadata']);
42-
$this->assertSame(100, $data['application_fee']);
42+
$this->assertSame(100, $data['application_fee_amount']);
4343
}
4444

4545
public function testDataWithLevel3()

tests/Message/PaymentIntents/AuthorizeRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testGetData()
4343
$this->assertSame('manual', $data['confirmation_method']);
4444
$this->assertSame('pm_valid_payment_method', $data['payment_method']);
4545
$this->assertSame(array('foo' => 'bar'), $data['metadata']);
46-
$this->assertSame(100, $data['application_fee']);
46+
$this->assertSame(100, $data['application_fee_amount']);
4747
$this->assertSame('off_session', $data['setup_future_usage']);
4848
$this->assertSame('false', $data['off_session']);
4949
}

tests/Message/PaymentIntents/PurchaseRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testGetData()
3939
$this->assertSame('manual', $data['confirmation_method']);
4040
$this->assertSame('pm_valid_payment_method', $data['payment_method']);
4141
$this->assertSame(array('foo' => 'bar'), $data['metadata']);
42-
$this->assertSame(100, $data['application_fee']);
42+
$this->assertSame(100, $data['application_fee_amount']);
4343
}
4444

4545
public function testSendSuccessAndRequireConfirmation()

0 commit comments

Comments
 (0)