Skip to content

Instantly share code, notes, and snippets.

View pauly4it's full-sized avatar

Paul Foryt pauly4it

View GitHub Profile
# Set composer folder for this command and update
commands:
01updateComposer:
command: export COMPOSER_HOME=/root && /usr/bin/composer.phar self-update
option_settings:
# Add environment variable to set composer home folder
- namespace: aws:elasticbeanstalk:application:environment
option_name: COMPOSER_HOME
value: /root
@pauly4it
pauly4it / appleResponse.php
Last active November 10, 2020 06:44
All code for Validating iOS In-App Purchases With Laravel blog post: http://blog.goforyt.com/validating-ios-app-purchases-laravel/
<?php
Array
(
[status] => 0
[environment] => Sandbox
[receipt] => Array
(
[receipt_type] => ProductionSandbox
[adam_id] => 0
@pauly4it
pauly4it / androidPurchaseReceipt.json
Created June 11, 2015 04:02
All code for Validating Android In-App Purchases With Laravel blog post: http://blog.goforyt.com/validating-android-app-purchases-laravel/
{
"receipt": {
"type": "android-playstore",
"id": "12345678901234567890.1234567890123456",
"purchaseToken": "purchase token goes here",
"receipt": "{"orderId":"12345678901234567890.1234567890123456","packageName":"com.example.app","productId":"com.example.app.product","purchaseTime":1417113074914,"purchaseState":0,"purchaseToken":"purchase token goes here"}",
"signature": "signature data goes here"
}
}