Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remake name to camel case #492

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified languages/woo-pagarme-payments-pt_BR.mo
Binary file not shown.
5 changes: 4 additions & 1 deletion languages/woo-pagarme-payments-pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ msgstr ""
"Project-Id-Version: WooCommerce Pagar.me Payments 1.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-pagarme-payments\n"
"POT-Creation-Date: 2018-06-22 13:58-0300\n"
"PO-Revision-Date: 2024-09-19 16:32-0300\n"
"PO-Revision-Date: 2024-10-01 09:24-0300\n"
"Last-Translator: Pagar.me\n"
"Language-Team: \n"
"Language: pt_BR\n"
Expand Down Expand Up @@ -1124,6 +1124,9 @@ msgstr "Cartão de Crédito"
msgid "2 Cards"
msgstr "2 Cartões"

msgid "Googlepay"
msgstr "Google Pay"

msgid "Amount"
msgstr "Total"

Expand Down
2 changes: 1 addition & 1 deletion src/Concrete/WoocommercePlatformOrderDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ private function extractPaymentDataFromGooglepay(
}
$newPaymentData->amount = $moneyService->floatToCents($this->getGrandTotal());
$newPaymentData->googlepayData = $cleanJson;
$newPaymentData->billing_address = $this->getCustomer()->getAddress()->convertToSDKRequest();
$newPaymentData->billing_address = $this->getCustomer()?->getAddress()?->convertToSDKRequest();
$newPaymentData->additionalInformation = ["googlepayData" => $cleanJson];
$googlepayIndex = 'googlepay';
if (!isset($paymentData[$googlepayIndex])) {
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Payment/GooglePay.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GooglePay extends AbstractPayment implements PaymentInterface

/** @var string[] */
protected $requirementsData = [
'payment_method',
'payment_method',
'token'
];

Expand Down
Loading