Which part of this is 'magic'? Serious question. That seems like standard python api client + standard payment processor api.
You gather params, post it somewhere, check out the response, and display it. It gets fancier with age, but it's essentially the same thing.
Also the stripe_token is pretty magic, it lets you make charges to customer credit cards without storing the card details or having to take them to an external payment page.
I use Braintree at my current job.
I used to work for Balanced.
I know payment processors. Its just times have changed and this kind of thing is now quite standard. But 'magical' is of opinion, I was just inquiring what he found magical.