Stripe

  • Posts: 108
  • Thank you received: 1
5 years 9 months ago #294825

-- HikaShop version -- : 3.4
-- Joomla version -- : 3.8.8

Hi,

I Need customized code to store extra information about the order into the hikashop table on successful payment of stripe like :

Subscription Id and Total no. of installments
2.Paid installments
3.Start Date
End Date

I have already implemented stripe subscription through Webhooks and have all the info pulled from stripe.
How can I include the extra information within order details (like for example PayPal transaction ID).

Thank you,

Please Log in or Create an account to join the conversation.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
5 years 9 months ago #294830

Hi,

It depends. If it's only for you, then you can create custom fields of the table "order" via the menu Display>Custom fields and store the informations there.
If it's for a plugin for the public, then you want to store that in the column order_payment_params of hikashop_order.
You should have your data serialized in that column and you should have an object with attributes.
For example:

$data = new stdClass();
$data->subscription_id = $subscription_id;
// etc for the rest of the data
$order = new stdClass();
$order->order_id = $order_id;
$order->order_payment_params = $data;
$orderClass = hikashop_get('class.order');
$orderClass->save($order);

Please Log in or Create an account to join the conversation.

  • Posts: 108
  • Thank you received: 1
5 years 9 months ago #295042

Thank you for your reply.

We have managed to make the installments displayed.

I have Updated two Files
in folder administrator\components\com_hikashop\views\order\tmpl

Listing.php
show_general.php file

these two file have to update to visualize installments in hikashop admin area.
functionality is with in plugin only this is just to visualize in the admin area.

Can we change view of admin area of Component with help of Plugin?

these files can also be replaced through ftp
in paypal, HikaShop creates a new order for the recurring payment and the akeeba subscription plugin extends the subscription period.
installment details are in akkeba not in hika

Thank you

Please Log in or Create an account to join the conversation.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
5 years 9 months ago #295046

Hi,

Just place these files in the folder administrator/templates/YOUR_TEMPLATES/html/com_hikashop/order/ and your view files will be used instead of the default one automatically.
And since they will be seen as overrides, you won't loose them when you update your HikaShop.

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum