magespices/module-moonpay

Moonpay payment integration for Magento 2

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 2

Open Issues: 0

Type:magento2-module

1.0.0 2021-04-06 09:53 UTC

This package is auto-updated.

Last update: 2024-12-06 17:47:55 UTC


README

Configuration

  1. Log into the admin panel

  2. Go to Stores -> Configuration

  3. Go to Sales -> Payment Methods

  4. Expand Moonpay

  5. Set up the following fields:

    1. Enabled - Yes
    2. Title - Method name you wish to be displayed in checkout
    3. New Order Status - order status after payment is completed
    4. Payment from Applicable Countries - whether the method should be available to selected countries
    5. Payment from Specific Countries - countries in which the payment method should be available
    6. Test mode - this settings allows you to use Moonpay in test mode
    7. Publishable key - public key available in Moonpay dashboard (Developers tab)
    8. Secret key - private key available in Moonpay dashboard (Developers tab)
    9. Bitcoin Address - BTC wallet address to receive the payments
  6. Save configuration

  7. Create a webhook:

    1. Log into Moonpay dashboard
    2. Go to Developers tab
    3. Go to Webhooks tab
    4. Click "Add Endpoint" (on the right)
    5. Type in the address: https://your_store_url/rest/default/V1/moonpay/transaction/save
    6. Check "Transaction created"
    7. Save the webhook
  8. Get the Webhook key

    1. Log into Moonpay dashboard
    2. Go to Developers tab
    3. Copy the Webhook key
  9. Configure the Webhook key

    1. Go to Magento admin panel
    2. Go to Stores > Configuration
    3. Go to Sales > Payment Methods
    4. Expand Moonpay section
    5. Fill in Webhook Key field with the key you just created in the Moonpay dashboard

Additional information

  • Minimum order amount is $20
  • Maximum order amount is $12000
  • Maximum order amount in test mode is $200
  • While redirecting to Moonpay, following data is sent:
    • cryptocurrency code (BTC)
    • currency code (USD)
    • configured BTC wallet address
    • order amount in USD
    • customer e-mail address
    • customer ID from Magento
    • configured public API key
    • confirmation that the amount transferred has been blocked
  • Order status is updated every 5 minutes via cron.
  • In test mode public and private key differ from the production ones. Before switching mode, make sure the correct one is set in Moonpay dashboard.