@gmisoftware/react-native-pay 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,7 @@ object GooglePayRequestBuilder {
48
48
  environment: Int
49
49
  ): JSONObject {
50
50
  return JSONObject().apply {
51
- put("merchantName", PaymentConstants.DEFAULT_MERCHANT_NAME)
51
+ put("merchantName", request.merchantName ?: PaymentConstants.DEFAULT_MERCHANT_NAME)
52
52
  // Add merchant ID only for PRODUCTION environment
53
53
  if (environment == WalletConstants.ENVIRONMENT_PRODUCTION) {
54
54
  put("merchantId", request.merchantIdentifier)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmisoftware/react-native-pay",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "author": "gmi.software",
5
5
  "repository": {
6
6
  "type": "git",
@@ -73,6 +73,7 @@ export interface PaymentToken {
73
73
  }
74
74
  export interface PaymentRequest {
75
75
  merchantIdentifier: string
76
+ merchantName?: string
76
77
  countryCode: string
77
78
  currencyCode: string
78
79
  paymentItems: PaymentItem[]