yoonic / atlas

E-Commerce Backend API in Hapi.js and RethinkDB
MIT License
373 stars 104 forks source link

Paypal support? #17

Closed emadicio closed 7 years ago

emadicio commented 7 years ago

Hey, is Paypal payment supported? I don't see it on Nici store!

mateomorrison commented 7 years ago

You need to hack the way around! Let me know when you start integrating it to help you.

Follow this steps and you'll find a way: https://github.com/yoonic/atlas/issues/2#issuecomment-244927167

andrecrt commented 7 years ago

Hi, direct integration with PayPal is not supported. The only service provider with which Atlas/Nicistore is integrated is Switch Payments. You can accept PayPal via Switch... contact us!

mateomorrison commented 7 years ago

@andreftavares It's not supported but it can be integrated, right? Just like integrating Stripe.

phoenixvk commented 7 years ago

If anyone have integrated payment gateway please share code or snippets it will be huge help.

On 20-Mar-2017 2:35 PM, "im ok" notifications@github.com wrote:

@mateomorrison https://github.com/mateomorrison Did you integrate Paypal in your app?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yoonic/atlas/issues/17#issuecomment-287705565, or mute the thread https://github.com/notifications/unsubscribe-auth/ANaQ0bVg4aVtr402bGufBOaKJsH2aSbbks5rnkFigaJpZM4MaVep .

mateomorrison commented 7 years ago

I'm still hacking aroung Stripe integration. To integrate a payment gateway I believe is the same as Switch. Homepage, Checkout, Confirmation.

What I'm doing while hacking it aroung is adding a form where customer inputs their CC info. This is not secure but will do the job to then process it manually.

El El lun, 20 de mar. de 2017 a las 06:19, phoenixvk < notifications@github.com> escribió:

If anyone have integrated payment gateway please share code or snippets it will be huge help.

On 20-Mar-2017 2:35 PM, "im ok" notifications@github.com wrote:

@mateomorrison https://github.com/mateomorrison Did you integrate Paypal in your app?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yoonic/atlas/issues/17#issuecomment-287705565, or mute the thread < https://github.com/notifications/unsubscribe-auth/ANaQ0bVg4aVtr402bGufBOaKJsH2aSbbks5rnkFigaJpZM4MaVep

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yoonic/atlas/issues/17#issuecomment-287720505, or mute the thread https://github.com/notifications/unsubscribe-auth/AX0pH-sJuLZfmXunc-yltkddUM4Jk9MBks5rnlLPgaJpZM4MaVep .

-- Mateo Morrison CEO at Tasky Exec Chairman at Fangoo

emadicio commented 7 years ago

What has been troubling me is the current payment workflow of atlas/nicistore, because payment isn't requested directly right after cart checkout, but first a mail is sent to the user with the details on how he should pay. This is is not the standard payment workflow for most e-commerce platforms

mateomorrison commented 7 years ago

The current payment is Bank Transfer, seems to be a popular one in Portugal. When the customer makes an order it sends you an email on which Account to deposit.

It can be automatized. The good part of PayPal is that it has a redirect link and as far as I know it should get the cart total and currency.

We will need to create a "Order Success" page on where to redirect. Also an "Order Failed" is there is an error. Or "Order marked as Fraud" since PayPal also flag as fraudulent when they think it is.

It's not weird it just how things work in Portugal. Switch Payment I think it's integrated the same way as PayPal should. So the steps should be:

• Find where Switch Payments API are • Integrate PayPal or Stripe the same way • Create Order confirmation page • Integrate as many Payment flows as possible.

If you think you can help with: • Reducing the lenght of Order Number. To 3 or 5 numbers. More user friendly • Adding Google Maps API when adding an address. • Integrate Twillio (on my development I already have a Phone Number field and planning to add Text Message notificafions). • Sending transactional emails from the localhost or website is not recommended. So we can Integrate Postmark or Sendgrid through this proccess.

El El lun, 20 de mar. de 2017 a las 08:39, im ok notifications@github.com escribió:

What has been troubling me is the current payment workflow of atlas/nicistore, because payment isn't done directly but first a mail is sent to the user with the details on how he should pay. Do you have any idea on how to automatize this process? User inserts product in cart --> He insert his details for shipment and billing --> He can choose between Credit Card and Paypal (express??) payment --> He selects Paypal --> he is redirected to Paypal for payment --> payment is submitted and user is redirected back to the store --> His order is updated with the right payment status (e.g. paid) automatically maybe via TransactionID and Paypal API (ofc admin should manually double check the payment too)

This is the standard payment workflow for every e-commerce platform, the one that is currently being used is really weird

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yoonic/atlas/issues/17#issuecomment-287747408, or mute the thread https://github.com/notifications/unsubscribe-auth/AX0pH_K87qxU8o9OoakBSO8yvMjuAI3uks5rnnNwgaJpZM4MaVep .

-- Mateo Morrison CEO at Tasky Exec Chairman at Fangoo

mateomorrison commented 7 years ago

Marketplace is on our roadmap too! Adding a new group user with a new administration panel and some database tables will do the job.

El El lun, 20 de mar. de 2017 a las 08:49, Mateo Morrison Hidalgo < mateomorrison@gmail.com> escribió:

The current payment is Bank Transfer, seems to be a popular one in Portugal. When the customer makes an order it sends you an email on which Account to deposit.

It can be automatized. The good part of PayPal is that it has a redirect link and as far as I know it should get the cart total and currency.

We will need to create a "Order Success" page on where to redirect. Also an "Order Failed" is there is an error. Or "Order marked as Fraud" since PayPal also flag as fraudulent when they think it is.

It's not weird it just how things work in Portugal. Switch Payment I think it's integrated the same way as PayPal should. So the steps should be:

• Find where Switch Payments API are • Integrate PayPal or Stripe the same way • Create Order confirmation page • Integrate as many Payment flows as possible.

If you think you can help with: • Reducing the lenght of Order Number. To 3 or 5 numbers. More user friendly • Adding Google Maps API when adding an address. • Integrate Twillio (on my development I already have a Phone Number field and planning to add Text Message notificafions). • Sending transactional emails from the localhost or website is not recommended. So we can Integrate Postmark or Sendgrid through this proccess.

El El lun, 20 de mar. de 2017 a las 08:39, im ok notifications@github.com escribió:

What has been troubling me is the current payment workflow of atlas/nicistore, because payment isn't done directly but first a mail is sent to the user with the details on how he should pay. Do you have any idea on how to automatize this process? User inserts product in cart --> He insert his details for shipment and billing --> He can choose between Credit Card and Paypal (express??) payment --> He selects Paypal --> he is redirected to Paypal for payment --> payment is submitted and user is redirected back to the store --> His order is updated with the right payment status (e.g. paid) automatically maybe via TransactionID and Paypal API (ofc admin should manually double check the payment too)

This is the standard payment workflow for every e-commerce platform, the one that is currently being used is really weird

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yoonic/atlas/issues/17#issuecomment-287747408, or mute the thread https://github.com/notifications/unsubscribe-auth/AX0pH_K87qxU8o9OoakBSO8yvMjuAI3uks5rnnNwgaJpZM4MaVep .

-- Mateo Morrison CEO at Tasky Exec Chairman at Fangoo

-- Mateo Morrison CEO at Tasky Exec Chairman at Fangoo

emadicio commented 7 years ago

Oh forgive my ignorance, I didn't know Bank Transfer was so popular in Portugal :)

Sending transactional emails from the localhost or website is not recommended. So we can Integrate Postmark or Sendgrid through this proccess.

This is what i remember from my old project: Mailgun is great because it allows you to use attachments + 10 thousand free mails per month. SparkPost offer 100 thousands free mails per months, but no attachments.

Reducing the length of Order Number. To 3 or 5 numbers. More user friendly

I think 3-5 numbers isn't really scalable, maybe a solution is a reversed unix timestamp minus the first 2/3 numbers? I think UUID are not really aesthetically pleasant especially in the URL because they include hyphens ("-") and are very long, so productID should change too

mateomorrison commented 7 years ago

That long number isn't scalable. When in support you ask for the Order Number they will not say that long.

Also other issue. When you are in checkout it convert itself to EUR in the total. Even when my products are in USD

El El lun, 20 de mar. de 2017 a las 09:01, im ok notifications@github.com escribió:

Oh forgive my ignorance, I didn't know Bank Transfer was so popular in Portugal :)

Sending transactional emails from the localhost or website is not recommended. So we can Integrate Postmark or Sendgrid through this proccess.

This is what i remember from my old project: Mailgun is great because it allows you to use attachments + 10 thousand free mails per month. SparkPost offer 100 thousands free mails per months, but no attachments.

Reducing the length of Order Number. To 3 or 5 numbers. More user friendly I think 3-5 numbers isn't really scalable, maybe a solution is a reversed unix timestamp minus the first 2/3 numbers?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yoonic/atlas/issues/17#issuecomment-287752331, or mute the thread https://github.com/notifications/unsubscribe-auth/AX0pH87Gdc4wgG0S9FOCXCf_B6cC9vzaks5rnni_gaJpZM4MaVep .

-- Mateo Morrison CEO at Tasky Exec Chairman at Fangoo

emadicio commented 7 years ago

That long number isn't scalable. When in support you ask for the Order Number they will not say that long.

What I meant was Date.now() -> 1490021132951 -> 90021132951. It's long but if we use only 5 numbers thats 10000 numbers, not scalable...

Also other issue. When you are in checkout it convert itself to EUR in the total. Even when my products are in USD

Have you switched default value to USD in config?