Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahkoop committed Oct 19, 2023
1 parent 9940b19 commit d067e0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## unreleased
* GooglePay
* Bump `play-services-wallet` version to `19.1.0`
* Bump `play-services-wallet` version to `19.2.1`
* Add `totalPriceLabel` to `GooglePayRequest`

## 4.39.0 (2023-10-16)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.braintreepayments.api.GooglePayClient;
import com.braintreepayments.api.GooglePayRequest;
import com.google.android.gms.wallet.ShippingAddressRequirements;
import com.google.android.gms.wallet.TransactionInfo;
import com.google.android.gms.wallet.WalletConstants;

public class GooglePayFragment extends BaseFragment implements GooglePayListener {
Expand Down Expand Up @@ -85,6 +86,11 @@ public void launchGooglePay(View v) {
activity.setProgressBarIndeterminateVisibility(true);

GooglePayRequest googlePayRequest = new GooglePayRequest();
googlePayRequest.setTransactionInfo(TransactionInfo.newBuilder()
.setCurrencyCode(Settings.getGooglePayCurrency(activity))
.setTotalPrice("1.00")
.setTotalPriceStatus(WalletConstants.TOTAL_PRICE_STATUS_FINAL)
.build());
googlePayRequest.setTotalPriceLabel("Braintree Demo Payment");
googlePayRequest.setAllowPrepaidCards(Settings.areGooglePayPrepaidCardsAllowed(activity));
googlePayRequest.setBillingAddressFormat(WalletConstants.BILLING_ADDRESS_FORMAT_FULL);
Expand Down

0 comments on commit d067e0d

Please sign in to comment.