lundi 3 juin 2019

Can Paypal being use for production in localhost without public address?

I am using Flask and try to get paypal work in production, I don't have a public domain, it work well in sandbox account.

will paypal work without a public domain(localhost) in production, or a way to test in production?

it no, is there other ways to receive payment?

payment = paypalrestsdk.Payment({
"intent": "sale",
"payer": {
    "payment_method": "paypal"},
"redirect_urls": {
    "return_url": "http://localhost:3000/payment/execute",
    "cancel_url": "http://localhost:3000/"},
"transactions": [{
    "item_list": {
        "items": [{
            "name": "item",
            "sku": "item",
            "price": "5.00",
            "currency": "USD",
            "quantity": 1}]},
    "amount": {
        "total": "5.00",
        "currency": "USD"},
    "description": "This is the payment transaction description."}]})

Aucun commentaire:

Enregistrer un commentaire