Payment gateway of my country!

Discussion in 'Extensions' started by Analista Empreendedor, Oct 2, 2015.

  1. Analista Empreendedor

    Analista Empreendedor New Member

    Joined:
    Oct 2, 2015
    Messages:
    9
    Likes Received:
    0
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    Hello! how i can integrate with a gateway payment of my country? any extension to redirect to an especific page and return to an address to confirm the payment? some example? thanks!
     
  2. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,450
    Likes Received:
    2,432
    Hey,

    You could look inside the paypal extension to see how that has been created and use it as an example for yours.
    You can also get Stripe / 2Checkout / Authorize.net / RazorPay extensions and look into those as well.
    Also, PayFast offers a free extension for mailwizz for their service, look into that as well.
     
  3. Analista Empreendedor

    Analista Empreendedor New Member

    Joined:
    Oct 2, 2015
    Messages:
    9
    Likes Received:
    0
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    yeah but i dont understand any of your code... i have to study your framework? which ?
     
  4. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,450
    Likes Received:
    2,432
  5. Analista Empreendedor

    Analista Empreendedor New Member

    Joined:
    Oct 2, 2015
    Messages:
    9
    Likes Received:
    0
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    how i can aprovate a order, change customer group and renew a email quota of customer using a PHP-SDK?
    with this i can create this integration
     
  6. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,450
    Likes Received:
    2,432
    You can't do either of those from the API it wouldn't be wise to let anybody or the customers change the email quota/groups or approve orders.
    Keep in kind, the API is targeted to customers ONLY not to site administrators.
     
  7. Analista Empreendedor

    Analista Empreendedor New Member

    Joined:
    Oct 2, 2015
    Messages:
    9
    Likes Received:
    0
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    oh ok understood
    but talking about the offline payment extension, on which file i have to modify to open a new screen(or popup) with my new code when the user click on submit on order page? and which variavel i can get the transaction id and customer email?

    thanks
     
  8. Analista Empreendedor

    Analista Empreendedor New Member

    Joined:
    Oct 2, 2015
    Messages:
    9
    Likes Received:
    0
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    my idea is open a page or a popup when customer click on submit with my transaction screen and when transaction ok modify the order to complete.
     
  9. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,450
    Likes Received:
    2,432
    This is exactly the way paypal integration works. What is wrong with using it as an example?
     
  10. Analista Empreendedor

    Analista Empreendedor New Member

    Joined:
    Oct 2, 2015
    Messages:
    9
    Likes Received:
    0
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    ok i will try and some questions i back here! thanks!
     
  11. Analista Empreendedor

    Analista Empreendedor New Member

    Joined:
    Oct 2, 2015
    Messages:
    9
    Likes Received:
    0
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    /customer/index.php/payment-gateways/paypal/ipn

    this is the return url from paypal? which file i can modify this?
    i search for ipn.php but without sucess
    i need to modify it to change the order status when the payment is finished!
     
  12. Analista Empreendedor

    Analista Empreendedor New Member

    Joined:
    Oct 2, 2015
    Messages:
    9
    Likes Received:
    0
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    hello! i am having a issue when promo code are applied!
    for example without promo code the $order->total come with this format 10.0000 (10 dolars)
    but when i apply a promo code with 5.0000 (5 dolars) the $order->total comes with 5 and not with 5.0000 (10 - 5)
    my gateway of payment just accept value in this format 5.0000 or 10.0000!
    where this value is calculated($order->total - promo code) to modify this method?
    i want to this return in the format 5.0000.

    thanks!!
     
  13. Analista Empreendedor

    Analista Empreendedor New Member

    Joined:
    Oct 2, 2015
    Messages:
    9
    Likes Received:
    0
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    hello again... where is calculated the discount of cupon codes?
    (order->total - coupon->discount) ?
     
  14. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,450
    Likes Received:
    2,432
    @Analista Empreendedor - We're getting into customization side of things with all these questions. All i can do for you is to point you to the files, which i did, if you need more, hire a developer familiar with Yii to do the changes you need to.
     
  15. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,450
    Likes Received:
    2,432
    I can't help it :D

    See apps/common/extensions/payment-gateway-paypal/customer/controllers/Payment_gateway_ext_paypalController.php

    See /apps/common/models/PricePlanOrder.php at line 325

    See /apps/common/models/PricePlanOrder.php at line 325
     

Share This Page