[Skip to main content](#vessel-content)

#  Profile for Ramio91

##

[![Ramio91's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60285-ramio91 "View Ramio91's Profile")

**[ Offline](/forum/user/60285-ramio91)**

- **User Type:** User

- **Register Date:** 06 Nov 2020
- **Last login:** 6 years 6 days ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 06:20

- **Posts:** 2
- **Profile views:** 36

- **Gender:** Unknown
- **Birthdate:** Unknown

- Posts

#  Ramio91's recent posts  (2 messages )

All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year     All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year

| <a id="forumtop"> </a> [  ](#forumbottom) | Subject | Replies / Views | Last Post | <a id="forumbottom"> </a> [   ](#forumtop) |
|---|---|---|---|---|
| [](/forum/31-development/901132-ajax-call-to-custom-payment-plugin#325570) | [Ajax call to custom payment plugin](/forum/31-development/901132-ajax-call-to-custom-payment-plugin#325570 "-- HikaShop version -- : HikaShop Starter 4.3.0 -- Joomla version -- : 3.9 -- PHP version -- : 7.3.0  Hi,  I'm trying to develope a REST paypal payment process. The payment process works fine in sandbox and I can see the transactions between accounts. When Paypal return me a success, I made a pretty simpre AJAX call to my plugin to test ajax url and it works fine  but now there's the trick, when i'm inside my plugin I can't access hikashop environment/method/variable/class in any way  I read ther doc, and I found out that I need this line  now I tried to access to the user&#95;id using the helper method  but, when I log the response into the console I get an empty string  I'm a novice developing plugin, I had more experience developing joomla modules and components. I read about the trigger topic for plugin but thats a topic to study later. I need now to get data from cart &amp;&amp; user in order to create an order and create a payment  Would be a easier choise to get data from dbo? I can easily access joomla's environment/methods and so on from my custom plugin  thanks in advance")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 6 years 1 week ago, by [Ramio91](/forum/user/60285-ramio91 "View Ramio91's Profile")       [Last Post](/forum/31-development/901132-ajax-call-to-custom-payment-plugin#325613 "Hi,  I'm not sure what you mean by each point in I'm actually not even sure of what you mean by &quot;the major steps to records a purchase on my system&quot;. Because, to record an order in HikaShop, all you need is to call the save function of class.order with the necessary $order object properly formatted as it is done in the createFromCart function in class.order. HikaShop will then handle the rest for you.  Now regarding the general workflow when an order is created at the end of the checkout, here is how it goes: - the customer clicks on the &quot;finish&quot; button of the checkout - the checkout system checks that everything has been properly entered/selected in the checkout - it loads the cart and converts it into an order object - the order creation process starts - plugins are called with the onBeforeOrderCreate trigger - if there was a credit card form on the checkout, the payment plugin will usually do the payment at that point and if the payment fails, it will cancel the order creation. If it succeeds, it ill usually change the status of the order to confirmed - the order is added in the database - the stock is updated for each order - plugins are called with the onAfterOrderCreate trigger - the order creation notification email is sent - the onAfterOrderConfirm trigger of the selected payment plugin is called - the plugin usually returns a redirect HTML form so that HikaShop displays it to the customer to be redirected to the payment gateway - the customer fill his credit card information on the payment gateway - the payment gateway sends a notification to the onPaymentNotification trigger of the payment plugin so that it can change the status of the order to confirmed and HikaShop will then send the order status notification email to the customer. - the customer is redirected back to the website with the thank you page.") 6 years 4 days ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:1372 | [Last Post](/forum/31-development/901132-ajax-call-to-custom-payment-plugin#325613 "Hi,  I'm not sure what you mean by each point in I'm actually not even sure of what you mean by &quot;the major steps to records a purchase on my system&quot;. Because, to record an order in HikaShop, all you need is to call the save function of class.order with the necessary $order object properly formatted as it is done in the createFromCart function in class.order. HikaShop will then handle the rest for you.  Now regarding the general workflow when an order is created at the end of the checkout, here is how it goes: - the customer clicks on the &quot;finish&quot; button of the checkout - the checkout system checks that everything has been properly entered/selected in the checkout - it loads the cart and converts it into an order object - the order creation process starts - plugins are called with the onBeforeOrderCreate trigger - if there was a credit card form on the checkout, the payment plugin will usually do the payment at that point and if the payment fails, it will cancel the order creation. If it succeeds, it ill usually change the status of the order to confirmed - the order is added in the database - the stock is updated for each order - plugins are called with the onAfterOrderCreate trigger - the order creation notification email is sent - the onAfterOrderConfirm trigger of the selected payment plugin is called - the plugin usually returns a redirect HTML form so that HikaShop displays it to the customer to be redirected to the payment gateway - the customer fill his credit card information on the payment gateway - the payment gateway sends a notification to the onPaymentNotification trigger of the payment plugin so that it can change the status of the order to confirmed and HikaShop will then send the order status notification email to the customer. - the customer is redirected back to the website with the thank you page.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      6 years 4 days ago |
| [](/forum/31-development/901132-ajax-call-to-custom-payment-plugin#325526) | [Ajax call to custom payment plugin](/forum/31-development/901132-ajax-call-to-custom-payment-plugin#325526 "-- HikaShop version -- : HikaShop Starter 4.3.0 -- Joomla version -- : 3.9 -- PHP version -- : 7.3.0  Hi,  I'm trying to develope a REST paypal payment process. The payment process works fine in sandbox and I can see the transactions between accounts. When Paypal return me a success, I made a pretty simpre AJAX call to my plugin to test ajax url and it works fine  but now there's the trick, when i'm inside my plugin I can't access hikashop environment/method/variable/class in any way  I read ther doc, and I found out that I need this line  now I tried to access to the user&#95;id using the helper method  but, when I log the response into the console I get an empty string  I'm a novice developing plugin, I had more experience developing joomla modules and components. I read about the trigger topic for plugin but thats a topic to study later. I need now to get data from cart &amp;&amp; user in order to create an order and create a payment  Would be a easier choise to get data from dbo? I can easily access joomla's environment/methods and so on from my custom plugin  thanks in advance")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 6 years 1 week ago, by [Ramio91](/forum/user/60285-ramio91 "View Ramio91's Profile")       [Last Post](/forum/31-development/901132-ajax-call-to-custom-payment-plugin#325613 "Hi,  I'm not sure what you mean by each point in I'm actually not even sure of what you mean by &quot;the major steps to records a purchase on my system&quot;. Because, to record an order in HikaShop, all you need is to call the save function of class.order with the necessary $order object properly formatted as it is done in the createFromCart function in class.order. HikaShop will then handle the rest for you.  Now regarding the general workflow when an order is created at the end of the checkout, here is how it goes: - the customer clicks on the &quot;finish&quot; button of the checkout - the checkout system checks that everything has been properly entered/selected in the checkout - it loads the cart and converts it into an order object - the order creation process starts - plugins are called with the onBeforeOrderCreate trigger - if there was a credit card form on the checkout, the payment plugin will usually do the payment at that point and if the payment fails, it will cancel the order creation. If it succeeds, it ill usually change the status of the order to confirmed - the order is added in the database - the stock is updated for each order - plugins are called with the onAfterOrderCreate trigger - the order creation notification email is sent - the onAfterOrderConfirm trigger of the selected payment plugin is called - the plugin usually returns a redirect HTML form so that HikaShop displays it to the customer to be redirected to the payment gateway - the customer fill his credit card information on the payment gateway - the payment gateway sends a notification to the onPaymentNotification trigger of the payment plugin so that it can change the status of the order to confirmed and HikaShop will then send the order status notification email to the customer. - the customer is redirected back to the website with the thank you page.") 6 years 4 days ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:1372 | [Last Post](/forum/31-development/901132-ajax-call-to-custom-payment-plugin#325613 "Hi,  I'm not sure what you mean by each point in I'm actually not even sure of what you mean by &quot;the major steps to records a purchase on my system&quot;. Because, to record an order in HikaShop, all you need is to call the save function of class.order with the necessary $order object properly formatted as it is done in the createFromCart function in class.order. HikaShop will then handle the rest for you.  Now regarding the general workflow when an order is created at the end of the checkout, here is how it goes: - the customer clicks on the &quot;finish&quot; button of the checkout - the checkout system checks that everything has been properly entered/selected in the checkout - it loads the cart and converts it into an order object - the order creation process starts - plugins are called with the onBeforeOrderCreate trigger - if there was a credit card form on the checkout, the payment plugin will usually do the payment at that point and if the payment fails, it will cancel the order creation. If it succeeds, it ill usually change the status of the order to confirmed - the order is added in the database - the stock is updated for each order - plugins are called with the onAfterOrderCreate trigger - the order creation notification email is sent - the onAfterOrderConfirm trigger of the selected payment plugin is called - the plugin usually returns a redirect HTML form so that HikaShop displays it to the customer to be redirected to the payment gateway - the customer fill his credit card information on the payment gateway - the payment gateway sends a notification to the onPaymentNotification trigger of the payment plugin so that it can change the status of the order to confirmed and HikaShop will then send the order status notification email to the customer. - the customer is redirected back to the website with the thank you page.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      6 years 4 days ago |

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.039 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
