Skip to content

Conversation

inabhani
Copy link

<script src="https://www.paypal.com/sdk/js?client-id=Abvgz56LA8km02CTjQ24QtrdysDsLrXromNwwJPVgh8PFCirqR1PSDnsnYR5iBCMIpLPfhB-NUzGGC9Y¤cy=USD" data-sdk-integration-source="button-factory"></script> <script> function initPayPalButton() { paypal.Buttons({ style: { shape: 'rect', color: 'gold', layout: 'vertical', label: 'paypal',
    },

    createOrder: function(data, actions) {
      return actions.order.create({
        purchase_units: [{"amount":{"currency_code":"USD","value":1}}]
      });
    },

    onApprove: function(data, actions) {
      return actions.order.capture().then(function(details) {
        alert('Transaction completed by ' + details.payer.name.given_name + '!');
      });
    },

    onError: function(err) {
      console.log(err);
    }
  }).render('#paypal-button-container');
}
initPayPalButton();
</script>

letscode-u and others added 30 commits April 19, 2021 11:39
Added 'Sort Order' function to provide the possibility of the user to set the position of this payment method in the list of payment methods on checkout page.
Allow PHP 8.2 and new version number so changes will be included when requesting updates in composer
Update composer.json to allow PHP 8.2 and new version number
Update system.xml to add 'Sort Order' function
…n-API-not-responding

Fixed issue with config when API is not responding
Removed placeholder 'Currency' from cryptocurrency dropdown to fix issues with other payment methods. Even though a customer wanted to pay with another payment method, they still needed to select a cryptocurrency from the dropdown menu in order to place their order.
Fix for better compatibility with other payment methods
Revert "Fix for better compatibility with other payment methods"
Clean up code a bit
Change sentence and make translatable
Fix 'error is undefined' when an error happens during creating the transaction.
Allow QR code image being loaded from https://www.coinpayments.net with Magento's Content Security Policy. (Required for Magento 2.4.7)
Update coin_payment.html
Update coin-method.js to fix error function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.