Skip to content

Instantly share code, notes, and snippets.

View chundo's full-sized avatar
🏠
Working from home

chundo

🏠
Working from home
View GitHub Profile
{
"private": true,
"name": "autogermana",
"repository": {
"type": "git",
"url": "https://github.com/imaginamos/autogermana"
},
"bugs": {
"url": "https://github.com/imaginamos/autogermana/issues"
},
@chundo
chundo / paypal.rb
Created July 23, 2018 01:06
Create plan, suscriptor y payment.
def paypal_test
if ((request.domain != 'localhost') && (request.port != 3000)) || ((request.domain == 'todeploy.com') || (request.domain == 'www.todeploy.com'))
@host = request.env['HTTP_HOST']
else
@host = 'localhost:3000'
end
plan = Plan.new(