Skip to content

Instantly share code, notes, and snippets.

View MiguelAlcaino's full-sized avatar

Miguel Alcaino MiguelAlcaino

View GitHub Profile
@MiguelAlcaino
MiguelAlcaino / apple_pay_php_payfort.md
Last active August 19, 2024 11:20
Apple Pay web integration with PHP (for Amazon payment services former Payfort)

I haven't seen any clear instructions to do this in internet, so I hope it comes handy to someone.

To get the to the certs section of the Apple Developer portal:

  • Go to https://developer.apple.com/account/resources/identifiers/list/merchant.
  • Select identifiers.
  • At the side of the magnifier icon (to filter), click on Merchant IDs.
  • Now click on the + icon to add a new record. Now Make sure that Merchant IDs is selected and click Continue.
  • In Description type a representative name for this Merchant ID record (I use Name of the Bussiness + ENV, like Awesome cakes test) and Identifier use the reverse-domain name style here (it's up to you it's just an id, I use merchant.com.awesomecakes.myapp.test).
  • Click on Continue and click Register.
##########################################
# To run:
# curl -sSL https://gist.githubusercontent.com/andrewelkins/1adc587feb610f586f8f40b50b7efc3a/raw/e8f87e9fd3db56b4b226587e2456611593cdff07/install-docker-on-linux-mint-18.sh | bash -x
##########################################
# Kernel version http://stackoverflow.com/a/4024263
versionlte() {
[ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ]
}
versionlt() {