magento / pwa-studio

šŸ› Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.07k stars 683 forks source link

[bug]: Payment is currently unavailable in checkout default #3117

Closed arielabaruffaldi closed 3 years ago

arielabaruffaldi commented 3 years ago

Describe the bug

Payment methods aren't showing in PWA checkout. I already enabled them in the Magento 2 backend as you can see in the second screenshot

To reproduce

Steps to reproduce the behavior:

  1. Create pwa studio app with yarn create @magento/pwa
  2. Change enviroment variable in .env
  3. Allow payment methods in the backend
  4. Upgrade and compile magento backend
  5. See error in PWA studio checkout

Expected behavior

PWA Studio checkout with payment methods allowed

Screenshots

image

image

Possible solutions

Please complete the following device information:

Please let us know what packages this bug is in regards to:

m2-assistant[bot] commented 3 years ago

Hi @arielapaula. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


wesleyalmd commented 3 years ago

You need have extensions that add the payment method using the checkoutPagePaymentTypes entry point. PWA Studio offers an offiline checkmo payment extension. Have you already added it to your project?

Repo: https://github.com/magento/pwa-studio/tree/develop/packages/extensions/venia-sample-payments-checkmo

yarn add @magento/venia-sample-payments-checkmo

You must create a new extension for each payment method you want to use.

sirugh commented 3 years ago

@arielapaula can you confirm whether your payment types have included the necessary extensions? For example, the venia-ui intercept adds the braintree type. Any additional type will need an extension/implementation.

sirugh commented 3 years ago

Closing for lack of response. Please reopen and provide the info requested if you continue to have an issue.