You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 26, 2024. It is now read-only.
Go to api config `./vue-storefront-api/config/local.json` and register the Paypal API extension:
72
-
```
90
+
Go to api config `./vue-storefront-api/config/local.json` and register the Paypal Api extension:
91
+
92
+
```json
73
93
"registeredExtensions": [
74
94
...
75
-
"payment-paypal"
95
+
"paypal"
76
96
]
77
97
```
78
98
79
99
And add the `paypal` settings to `extensions` key:
80
-
```
100
+
101
+
Add the following also to your `config/local.json` need set `paypal.env` to `sandbox` or `live`.
102
+
103
+
```json
81
104
"extensions": {
82
-
"mailchimp": {
83
-
...
84
-
},
85
105
"paypal": {
86
-
"api": "https://api.sandbox.paypal.com",
87
-
"client": "",
88
-
"secret": ""
89
-
}
106
+
"env":"sandbox",
107
+
"clientId":"",
108
+
"secret":"",
109
+
"username":"",
110
+
"password":"",
111
+
"signature":""
112
+
},
113
+
...
90
114
}
91
115
```
92
116
93
-
## Magento 2 integration
117
+
## Magento2 integration
94
118
95
-
This API extension executes payment to the PayPal gateway. It uses `develodesign/m2-paypal-payment`[The custom Paypal payment method for Magento2](https://github.com/develodesign/m2-paypal-payment) composer module, so you have to install it in your Magento instance.
119
+
Turn on Paypal Express and provide the API credentials using the built in Paypal module. Enable only Express Checkout.
120
+
121
+
Other Paypal methods are not supported or tested right now.
96
122
97
123
## Customization
98
124
99
-
Also, we can use the `paypal.style` option for a more customizable PayPal button view. For more info [PayPal](https://developer.paypal.com/demo/checkout/#/pattern/checkout).
125
+
Also we can use `paypal.style` option for more customizable PayPal button view. For more info [PayPal](https://developer.paypal.com/demo/checkout/#/pattern/checkout).
0 commit comments