Git Product home page Git Product logo

woocommerce-fastspring-payment-gateway's Introduction

WooCommerce FastSpring Payment Gateway plugin

NOT CURRENTLY MAINTAINED

Due to FastSpring's anti privacy policy I am no longer developing this plugin.

FastSpring For WooCommerce integrates your FastSpring account with your WordPress site. It provides support for both the hosted and popup version of FastSpring and provides webhook and API support for order validation as well as subscription support.

Installation

View installation instructions here.

Donate

Donate

woocommerce-fastspring-payment-gateway's People

Contributors

cyberwombat avatar tareq1988 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

woocommerce-fastspring-payment-gateway's Issues

'expired' error

Hi all,

Firstly, thanks for all your hard work on this! It seemingly was working for me, but now all I get is the text 'expired' when clicking checkout. Any idea what this could be caused by?

Thanks.

New Product Tax Categories

From October FastSpring wants all products defined to have a product tax category:
https://fastspring.com/docs/about-vat-and-sales-tax/
https://fastspring.com/docs/product-tax-category/

If I understand correctly, this plugin does not use the products that are defined in our FastSpring accounts and instead creates them on the fly for each order.

Does this new Product Tax Category have to be integrated in to the WooCommerce plugin or does nothing change? Will using this plugin still allow FastSpring to apply the appropriate taxes (software licenses) once things presumably move fully to the new system?

Thanks.

Checkout Amount in FastSpring Window does not reflect cart quantities

You had closed this issue, but unfortunately, this is still not working correctly.

I updated, but I am still getting the price for quantity 1 of each the first time that I select the checkout button that brings up the pop-up. The plugin is still not grabbing the correct quantities from the cart.

If I cancel the pop-up, and click the button to bring up the checkout, the plugin grabs the correct prices.

I am going to complete a checkout to see if the quantities are being reduced to 1, or if the prices are just being changed.

More Info:

When I visit the cart and then checkout, the popup gives me the cost for only 1 of each item. It is only passing 1 item through to fastspring.

After I cancel the popup and click the checkout button again, it is passing all items through to fastspring. I think this must have something to do with where you are getting the items, because the plugin thinks that it is only passing 1 of each item through to fastspring the first time i go to the checkout.

Hope that you get a chance to take a look at this soon. Thanks!

Here is the log. I removed all the product and user information, but the important bits are there.

You can see that even though the plugin detects that there are products in the cart, it still only passes quantity 1 for each item in the cart to fastspring.

The second part of the log shows the calculation working correctly. You can see where I cancelled the checkout, and clicked the checkout button again. The plugin then gets the correct value and quantity for all items in the cart.

06-20-2018 @ 02:47:00 - Calculating pricing for amount of 38.00 and qty of 5 with cart total of 240 and discount of 0: 38
06-20-2018 @ 02:47:00 - Calculating pricing for amount of 50 and qty of 1 with cart total of 240 and discount of 0: 50
06-20-2018 @ 02:47:39 - API order hJUpZ90iTvy23SBi5PW6ew completion checked
06-20-2018 @ 02:47:40 - Marking order ID 3812 as complete
06-20-2018 @ 02:47:55 - is_valid_webhook_request: Checking FastSpring webhook validity
06-20-2018 @ 02:47:55 - No webhook handler found for
06-20-2018 @ 02:47:55 - [{"id":"jG3agjboRsubC5EIbCwTcQ","processed":false,"created":1529480854460,"type":"subscription.activated","live":false,"data":{"id":"yXF62FiZRNSph09Il_ZrnA","subscription":"yXF62FiZRNSph09Il_ZrnA","active":true,"state":"active","changed":1529480854135,"changedValue":1529480854135,"changedInSeconds":1529480854,"changedDisplay":"6/20/18","live":false,"currency":"USD","account":"","product":"product-with-premium-support","sku":"PS101PT05","display":"product with Premium Support","quantity":1,"adhoc":false,"autoRenew":true,"price":38,"priceDisplay":"$38.00","priceInPayoutCurrency":38,"priceInPayoutCurrencyDisplay":"$38.00","discount":0,"discountDisplay":"$0.00","discountInPayoutCurrency":0,"discountInPayoutCurrencyDisplay":"$0.00","subtotal":38,"subtotalDisplay":"$38.00","subtotalInPayoutCurrency":38,"subtotalInPayoutCurrencyDisplay":"$38.00","attributes":{"webhook_action":"UpdateUserInformation"},"tags":{"store_order_id":3812},"next":1560988800000,"nextValue":1560988800000,"nextInSeconds":1560988800,"nextDisplay":"6/20/19","end":null,"endValue":null,"endInSeconds":null,"endDisplay":null,"canceledDate":null,"canceledDateValue":null,"canceledDateInSeconds":null,"canceledDateDisplay":null,"deactivationDate":null,"deactivationDateValue":null,"deactivationDateInSeconds":null,"deactivationDateDisplay":null,"sequence":1,"periods":null,"remainingPeriods":null,"begin":1529452800000,"beginValue":1529452800000,"beginInSeconds":1529452800,"beginDisplay":"6/20/18","intervalUnit":"year","intervalLength":1,"nextChargeCurrency":"USD","nextChargeDate":1560988800000,"nextChargeDateValue":1560988800000,"nextChargeDateInSeconds":1560988800,"nextChargeDateDisplay":"6/20/19","nextChargeTotal":38,"nextChargeTotalDisplay":"$38.00","nextChargeTotalInPayoutCurrency":38,"nextChargeTotalInPayoutCurrencyDisplay":"$38.00","nextNotificationType":"PAYMENT_REMINDER","nextNotificationDate":1560384000000,"nextNotificationDateValue":1560384000000,"nextNotificationDateInSeconds":1560384000,"nextNotificationDateDisplay":"6/13/19","paymentReminder":{"intervalUnit":"week","intervalLength":1},"paymentOverdue":{"intervalUnit":"week","intervalLength":1,"total":4,"sent":0},"cancellationSetting":{"cancellation":"AFTER_LAST_NOTIFICATION","intervalUnit":"week","intervalLength":1},"instructions":[{"product":"product-with-premium-support","type":"regular","periodStartDate":null,"periodStartDateValue":null,"periodStartDateInSeconds":null,"periodStartDateDisplay":null,"periodEndDate":null,"periodEndDateValue":null,"periodEndDateInSeconds":null,"periodEndDateDisplay":null,"intervalUnit":"year","intervalLength":1,"discountPercent":0,"discountPercentValue":0,"discountPercentDisplay":"0%","discountTotal":0,"discountTotalDisplay":"$0.00","discountTotalInPayoutCurrency":0,"discountTotalInPayoutCurrencyDisplay":"$0.00","unitDiscount":0,"unitDiscountDisplay":"$0.00","unitDiscountInPayoutCurrency":0,"unitDiscountInPayoutCurrencyDisplay":"$0.00","price":38,"priceDisplay":"$38.00","priceInPayoutCurrency":38,"priceInPayoutCurrencyDisplay":"$38.00","priceTotal":38,"priceTotalDisplay":"$38.00","priceTotalInPayoutCurrency":38,"priceTotalInPayoutCurrencyDisplay":"$38.00","unitPrice":38,"unitPriceDisplay":"$38.00","unitPriceInPayoutCurrency":38,"unitPriceInPayoutCurrencyDisplay":"$38.00","total":38,"totalDisplay":"$38.00","totalInPayoutCurrency":38,"totalInPayoutCurrencyDisplay":"$38.00"}]}},{"id":"r9e-EdfoSD2lfyiHWIA7lA","processed":false,"created":1529480854758,"type":"subscription.activated","live":false,"data":{"id":"rs1RyZBvQMOQ2p5zY-NMDA","subscription":"rs1RyZBvQMOQ2p5zY-NMDA","active":true,"state":"active","changed":1529480854534,"changedValue":1529480854534,"changedInSeconds":1529480854,"changedDisplay":"6/20/18","live":false,"currency":"USD","account":"","product":"product-with-premium-support-2-license-bundle","sku":"PS101PT06","display":"product with Premium Support (2 License Bundle)","quantity":1,"adhoc":false,"autoRenew":true,"price":50,"priceDisplay":"$50.00","priceInPayoutCurrency":50,"priceInPayoutCurrencyDisplay":"$50.00","discount":0,"discountDisplay":"$0.00","discountInPayoutCurrency":0,"discountInPayoutCurrencyDisplay":"$0.00","subtotal":50,"subtotalDisplay":"$50.00","subtotalInPayoutCurrency":50,"subtotalInPayoutCurrencyDisplay":"$50.00","tags":{"store_order_id":3812},"next":1560988800000,"nextValue":1560988800000,"nextInSeconds":1560988800,"nextDisplay":"6/20/19","end":null,"endValue":null,"endInSeconds":null,"endDisplay":null,"canceledDate":null,"canceledDateValue":null,"canceledDateInSeconds":null,"canceledDateDisplay":null,"deactivationDate":null,"deactivationDateValue":null,"deactivationDateInSeconds":null,"deactivationDateDisplay":null,"sequence":1,"periods":null,"remainingPeriods":null,"begin":1529452800000,"beginValue":1529452800000,"beginInSeconds":1529452800,"beginDisplay":"6/20/18","intervalUnit":"year","intervalLength":1,"nextChargeCurrency":"USD","nextChargeDate":1560988800000,"nextChargeDateValue":1560988800000,"nextChargeDateInSeconds":1560988800,"nextChargeDateDisplay":"6/20/19","nextChargeTotal":50,"nextChargeTotalDisplay":"$50.00","nextChargeTotalInPayoutCurrency":50,"nextChargeTotalInPayoutCurrencyDisplay":"$50.00","nextNotificationType":"PAYMENT_REMINDER","nextNotificationDate":1560384000000,"nextNotificationDateValue":1560384000000,"nextNotificationDateInSeconds":1560384000,"nextNotificationDateDisplay":"6/13/19","paymentReminder":{"intervalUnit":"week","intervalLength":1},"paymentOverdue":{"intervalUnit":"week","intervalLength":1,"total":4,"sent":0},"cancellationSetting":{"cancellation":"AFTER_LAST_NOTIFICATION","intervalUnit":"week","intervalLength":1},"instructions":[{"product":"product-with-premium-support-2-license-bundle","type":"regular","periodStartDate":null,"periodStartDateValue":null,"periodStartDateInSeconds":null,"periodStartDateDisplay":null,"periodEndDate":null,"periodEndDateValue":null,"periodEndDateInSeconds":null,"periodEndDateDisplay":null,"intervalUnit":"year","intervalLength":1,"discountPercent":0,"discountPercentValue":0,"discountPercentDisplay":"0%","discountTotal":0,"discountTotalDisplay":"$0.00","discountTotalInPayoutCurrency":0,"discountTotalInPayoutCurrencyDisplay":"$0.00","unitDiscount":0,"unitDiscountDisplay":"$0.00","unitDiscountInPayoutCurrency":0,"unitDiscountInPayoutCurrencyDisplay":"$0.00","price":50,"priceDisplay":"$50.00","priceInPayoutCurrency":50,"priceInPayoutCurrencyDisplay":"$50.00","priceTotal":50,"priceTotalDisplay":"$50.00","priceTotalInPayoutCurrency":50,"priceTotalInPayoutCurrencyDisplay":"$50.00","unitPrice":50,"unitPriceDisplay":"$50.00","unitPriceInPayoutCurrency":50,"unitPriceInPayoutCurrencyDisplay":"$50.00","total":50,"totalDisplay":"$50.00","totalInPayoutCurrency":50,"totalInPayoutCurrencyDisplay":"$50.00"}]}},{"id":"CtjrZ3OmSOCflbS9zmdNtg","processed":false,"created":1529480855170,"type":"order.completed","live":false,"data":{"order":"hJUpZ90iTvy23SBi5PW6ew","id":"hJUpZ90iTvy23SBi5PW6ew","reference":"COMPANYHERE180620-4197-19163","buyerReference":null,"completed":true,"changed":1529480854811,"changedValue":1529480854811,"changedInSeconds":1529480854,"changedDisplay":"6/20/18","language":"en","live":false,"currency":"USD","payoutCurrency":"USD","invoiceUrl":"https://companynamehere.test.onfastspring.com/account/order/COMPANYNAMEHERE180620-4197-19163/invoice","account":"","total":88,"totalDisplay":"$88.00","totalInPayoutCurrency":88,"totalInPayoutCurrencyDisplay":"$88.00","tax":0,"taxDisplay":"$0.00","taxInPayoutCurrency":0,"taxInPayoutCurrencyDisplay":"$0.00","subtotal":88,"subtotalDisplay":"$88.00","subtotalInPayoutCurrency":88,"subtotalInPayoutCurrencyDisplay":"$88.00","discount":0,"discountDisplay":"$0.00","discountInPayoutCurrency":0,"discountInPayoutCurrencyDisplay":"$0.00","discountWithTax":0,"discountWithTaxDisplay":"$0.00","discountWithTaxInPayoutCurrency":0,"discountWithTaxInPayoutCurrencyDisplay":"$0.00","billDescriptor":"FS* fsprg.com","payment":{"type":"test","cardEnding":"4242"},"customer":{"first":"","last":"","email":"","company":"","phone":""},"address":{"addressLine1":"","city":"","regionCode":"","regionDisplay":"","region":"","postalCode":"","country":"US","display":""},"tags":{"store_order_id":3812},"notes":[],"items":[{"product":"product-with-premium-support","quantity":1,"display":"product with Premium Support","sku":"PS101PT05","subtotal":38,"subtotalDisplay":"$38.00","subtotalInPayoutCurrency":38,"subtotalInPayoutCurrencyDisplay":"$38.00","attributes":{"webhook_action":"UpdateUserInformation"},"discount":0,"discountDisplay":"$0.00","discountInPayoutCurrency":0,"discountInPayoutCurrencyDisplay":"$0.00","subscription":"yXF62FiZRNSph09Il_ZrnA","fulfillments":{"product-with-premium-support_license_0":[{"license":"XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX","display":"License Key","type":"license"}],"instructions":""}},{"product":"product-with-premium-support-2-license-bundle","quantity":1,"display":"product with Premium Support (2 License Bundle)","sku":"PS101PT06","subtotal":50,"subtotalDisplay":"$50.00","subtotalInPayoutCurrency":50,"subtotalInPayoutCurrencyDisplay":"$50.00","discount":0,"discountDisplay":"$0.00","discountInPayoutCurrency":0,"discountInPayoutCurrencyDisplay":"$0.00","subscription":"rs1RyZBvQMOQ2p5zY-NMDA","fulfillments":{"product-with-premium-support-2-license-bundle_license_0":[{"license":"XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX","display":"License Key","type":"license"}],"instructions":""}}]}}]
06-20-2018 @ 02:48:31 - Calculating pricing for amount of 38.00 and qty of 5 with cart total of 240 and discount of 0: 38
06-20-2018 @ 02:48:31 - Calculating pricing for amount of 50 and qty of 1 with cart total of 240 and discount of 0: 50
06-20-2018 @ 02:49:01 - Calculating pricing for amount of 38.00 and qty of 5 with cart total of 240 and discount of 0: 38
06-20-2018 @ 02:49:01 - Calculating pricing for amount of 50 and qty of 1 with cart total of 240 and discount of 0: 50
06-20-2018 @ 02:49:38 - API order EEcUqi6uQEyekobvPK9qFw completion checked
06-20-2018 @ 02:49:38 - Marking order ID 3815 as complete
06-20-2018 @ 02:49:58 - is_valid_webhook_request: Checking FastSpring webhook validity
06-20-2018 @ 02:49:58 - No webhook handler found for
06-20-2018 @ 02:49:58 - [{"id":"xRYSE9-MQcucBC1xaaL0uA","processed":false,"created":1529480973574,"type":"subscription.activated","live":false,"data":{"id":"N2d5-kQ9TmupHncT5q3Lyw","subscription":"N2d5-kQ9TmupHncT5q3Lyw","active":true,"state":"active","changed":1529480973284,"changedValue":1529480973284,"changedInSeconds":1529480973,"changedDisplay":"6/20/18","live":false,"currency":"USD","account":"","product":"product-with-premium-support","sku":"PS101PT05","display":"product with Premium Support","quantity":5,"adhoc":false,"autoRenew":true,"price":38,"priceDisplay":"$38.00","priceInPayoutCurrency":38,"priceInPayoutCurrencyDisplay":"$38.00","discount":0,"discountDisplay":"$0.00","discountInPayoutCurrency":0,"discountInPayoutCurrencyDisplay":"$0.00","subtotal":190,"subtotalDisplay":"$190.00","subtotalInPayoutCurrency":190,"subtotalInPayoutCurrencyDisplay":"$190.00","attributes":{"webhook_action":"UpdateUserInformation"},"tags":{"store_order_id":3815},"next":1560988800000,"nextValue":1560988800000,"nextInSeconds":1560988800,"nextDisplay":"6/20/19","end":null,"endValue":null,"endInSeconds":null,"endDisplay":null,"canceledDate":null,"canceledDateValue":null,"canceledDateInSeconds":null,"canceledDateDisplay":null,"deactivationDate":null,"deactivationDateValue":null,"deactivationDateInSeconds":null,"deactivationDateDisplay":null,"sequence":1,"periods":null,"remainingPeriods":null,"begin":1529452800000,"beginValue":1529452800000,"beginInSeconds":1529452800,"beginDisplay":"6/20/18","intervalUnit":"year","intervalLength":1,"nextChargeCurrency":"USD","nextChargeDate":1560988800000,"nextChargeDateValue":1560988800000,"nextChargeDateInSeconds":1560988800,"nextChargeDateDisplay":"6/20/19","nextChargeTotal":190,"nextChargeTotalDisplay":"$190.00","nextChargeTotalInPayoutCurrency":190,"nextChargeTotalInPayoutCurrencyDisplay":"$190.00","nextNotificationType":"PAYMENT_REMINDER","nextNotificationDate":1560384000000,"nextNotificationDateValue":1560384000000,"nextNotificationDateInSeconds":1560384000,"nextNotificationDateDisplay":"6/13/19","paymentReminder":{"intervalUnit":"week","intervalLength":1},"paymentOverdue":{"intervalUnit":"week","intervalLength":1,"total":4,"sent":0},"cancellationSetting":{"cancellation":"AFTER_LAST_NOTIFICATION","intervalUnit":"week","intervalLength":1},"instructions":[{"product":"product-with-premium-support","type":"regular","periodStartDate":null,"periodStartDateValue":null,"periodStartDateInSeconds":null,"periodStartDateDisplay":null,"periodEndDate":null,"periodEndDateValue":null,"periodEndDateInSeconds":null,"periodEndDateDisplay":null,"intervalUnit":"year","intervalLength":1,"discountPercent":0,"discountPercentValue":0,"discountPercentDisplay":"0%","discountTotal":0,"discountTotalDisplay":"$0.00","discountTotalInPayoutCurrency":0,"discountTotalInPayoutCurrencyDisplay":"$0.00","unitDiscount":0,"unitDiscountDisplay":"$0.00","unitDiscountInPayoutCurrency":0,"unitDiscountInPayoutCurrencyDisplay":"$0.00","price":38,"priceDisplay":"$38.00","priceInPayoutCurrency":38,"priceInPayoutCurrencyDisplay":"$38.00","priceTotal":190,"priceTotalDisplay":"$190.00","priceTotalInPayoutCurrency":190,"priceTotalInPayoutCurrencyDisplay":"$190.00","unitPrice":38,"unitPriceDisplay":"$38.00","unitPriceInPayoutCurrency":38,"unitPriceInPayoutCurrencyDisplay":"$38.00","total":190,"totalDisplay":"$190.00","totalInPayoutCurrency":190,"totalInPayoutCurrencyDisplay":"$190.00"}]}},{"id":"26HnRjZ8S0iK2retxg9G7w","processed":false,"created":1529480973935,"type":"subscription.activated","live":false,"data":{"id":"g16e45KNQ5aHiWvRGfUdBg","subscription":"g16e45KNQ5aHiWvRGfUdBg","active":true,"state":"active","changed":1529480973635,"changedValue":1529480973635,"changedInSeconds":1529480973,"changedDisplay":"6/20/18","live":false,"currency":"USD","account":"","product":"product-with-premium-support-2-license-bundle","sku":"PS101PT06","display":"product with Premium Support (2 License Bundle)","quantity":1,"adhoc":false,"autoRenew":true,"price":50,"priceDisplay":"$50.00","priceInPayoutCurrency":50,"priceInPayoutCurrencyDisplay":"$50.00","discount":0,"discountDisplay":"$0.00","discountInPayoutCurrency":0,"discountInPayoutCurrencyDisplay":"$0.00","subtotal":50,"subtotalDisplay":"$50.00","subtotalInPayoutCurrency":50,"subtotalInPayoutCurrencyDisplay":"$50.00","tags":{"store_order_id":3815},"next":1560988800000,"nextValue":1560988800000,"nextInSeconds":1560988800,"nextDisplay":"6/20/19","end":null,"endValue":null,"endInSeconds":null,"endDisplay":null,"canceledDate":null,"canceledDateValue":null,"canceledDateInSeconds":null,"canceledDateDisplay":null,"deactivationDate":null,"deactivationDateValue":null,"deactivationDateInSeconds":null,"deactivationDateDisplay":null,"sequence":1,"periods":null,"remainingPeriods":null,"begin":1529452800000,"beginValue":1529452800000,"beginInSeconds":1529452800,"beginDisplay":"6/20/18","intervalUnit":"year","intervalLength":1,"nextChargeCurrency":"USD","nextChargeDate":1560988800000,"nextChargeDateValue":1560988800000,"nextChargeDateInSeconds":1560988800,"nextChargeDateDisplay":"6/20/19","nextChargeTotal":50,"nextChargeTotalDisplay":"$50.00","nextChargeTotalInPayoutCurrency":50,"nextChargeTotalInPayoutCurrencyDisplay":"$50.00","nextNotificationType":"PAYMENT_REMINDER","nextNotificationDate":1560384000000,"nextNotificationDateValue":1560384000000,"nextNotificationDateInSeconds":1560384000,"nextNotificationDateDisplay":"6/13/19","paymentReminder":{"intervalUnit":"week","intervalLength":1},"paymentOverdue":{"intervalUnit":"week","intervalLength":1,"total":4,"sent":0},"cancellationSetting":{"cancellation":"AFTER_LAST_NOTIFICATION","intervalUnit":"week","intervalLength":1},"instructions":[{"product":"product-with-premium-support-2-license-bundle","type":"regular","periodStartDate":null,"periodStartDateValue":null,"periodStartDateInSeconds":null,"periodStartDateDisplay":null,"periodEndDate":null,"periodEndDateValue":null,"periodEndDateInSeconds":null,"periodEndDateDisplay":null,"intervalUnit":"year","intervalLength":1,"discountPercent":0,"discountPercentValue":0,"discountPercentDisplay":"0%","discountTotal":0,"discountTotalDisplay":"$0.00","discountTotalInPayoutCurrency":0,"discountTotalInPayoutCurrencyDisplay":"$0.00","unitDiscount":0,"unitDiscountDisplay":"$0.00","unitDiscountInPayoutCurrency":0,"unitDiscountInPayoutCurrencyDisplay":"$0.00","price":50,"priceDisplay":"$50.00","priceInPayoutCurrency":50,"priceInPayoutCurrencyDisplay":"$50.00","priceTotal":50,"priceTotalDisplay":"$50.00","priceTotalInPayoutCurrency":50,"priceTotalInPayoutCurrencyDisplay":"$50.00","unitPrice":50,"unitPriceDisplay":"$50.00","unitPriceInPayoutCurrency":50,"unitPriceInPayoutCurrencyDisplay":"$50.00","total":50,"totalDisplay":"$50.00","totalInPayoutCurrency":50,"totalInPayoutCurrencyDisplay":"$50.00"}]}},{"id":"Mn3ZG41WTweretV8mTB8fQ","processed":false,"created":1529480974327,"type":"order.completed","live":false,"data":{"order":"EEcUqi6uQEyekobvPK9qFw","id":"EEcUqi6uQEyekobvPK9qFw","reference":"COMPANYHERE180620-4197-83177","buyerReference":null,"completed":true,"changed":1529480973997,"changedValue":1529480973997,"changedInSeconds":1529480973,"changedDisplay":"6/20/18","language":"en","live":false,"currency":"USD","payoutCurrency":"USD","invoiceUrl":"https://companynamehere.test.onfastspring.com/account/order/COMPANYNAMEHERE180620-4197-83177/invoice","account":"","total":240,"totalDisplay":"$240.00","totalInPayoutCurrency":240,"totalInPayoutCurrencyDisplay":"$240.00","tax":0,"taxDisplay":"$0.00","taxInPayoutCurrency":0,"taxInPayoutCurrencyDisplay":"$0.00","subtotal":240,"subtotalDisplay":"$240.00","subtotalInPayoutCurrency":240,"subtotalInPayoutCurrencyDisplay":"$240.00","discount":0,"discountDisplay":"$0.00","discountInPayoutCurrency":0,"discountInPayoutCurrencyDisplay":"$0.00","discountWithTax":0,"discountWithTaxDisplay":"$0.00","discountWithTaxInPayoutCurrency":0,"discountWithTaxInPayoutCurrencyDisplay":"$0.00","billDescriptor":"FS* fsprg.com","payment":{"type":"test","cardEnding":"4242"},"customer":{"first":"","last":"","email":"","company":"","phone":""},"address":{"addressLine1":"","city":"","regionCode":"","regionDisplay":"","region":"","postalCode":"","country":"","display":""},"tags":{"store_order_id":3815},"notes":[],"items":[{"product":"product-with-premium-support","quantity":5,"display":"product with Premium Support","sku":"PS101PT05","subtotal":190,"subtotalDisplay":"$190.00","subtotalInPayoutCurrency":190,"subtotalInPayoutCurrencyDisplay":"$190.00","attributes":{"webhook_action":"UpdateUserInformation"},"discount":0,"discountDisplay":"$0.00","discountInPayoutCurrency":0,"discountInPayoutCurrencyDisplay":"$0.00","subscription":"N2d5-kQ9TmupHncT5q3Lyw","fulfillments":{"product-with-premium-support_license_0":[{"license":"XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX","display":"License Key","type":"license"}],"instructions":""}},{"product":"product-with-premium-support-2-license-bundle","quantity":1,"display":"product with Premium Support (2 License Bundle)","sku":"PS101PT06","subtotal":50,"subtotalDisplay":"$50.00","subtotalInPayoutCurrency":50,"subtotalInPayoutCurrencyDisplay":"$50.00","discount":0,"discountDisplay":"$0.00","discountInPayoutCurrency":0,"discountInPayoutCurrencyDisplay":"$0.00","subscription":"g16e45KNQ5aHiWvRGfUdBg","fulfillments":{"product-with-premium-support-2-license-bundle_license_0":[{"license":"XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX","display":"License Key","type":"license"}],"instructions":""}}]}}]

Error if product is a woo-commerce variable product

Thank you, contributors, who are maintaining this repo.😊

I am using FastSpring checkout for Woocommerce in my store. It was ok till I had all my products as simple woocommerce products. Later I changed them to a variable product to add different types of licence keys like ( Single site licence, Multisite licence & developer licence ).

Here is the example: https://themebeez.com/themes/cream-magazine-pro/

I noticed that when somebody tries to checkout now FS window is not being displayed. I checked console & got these errors.

fastspring-builder.min.js:3 [FastSpring API] (!) Error: Error received: 400 variation-not-found

[FastSpring API] (!) Error: Error received: 400 empty-session

I have attached a screenshot here: https://drive.google.com/open?id=18mKib_j6x_WJkORns8IY4-ZoJ6rMb_f0

Looking for help to fix this problem.

Thank you in advance.

Regards,
Anuj

Gateway creates new order each time, even if the same cart is submitted.

I am not sure if this is related to the pending payment issue, or not.
The gateway is creating a new order each time, even if the same order is submitted, and then cancelled.

For example: I put an item in the cart, and select pay for order. The Fastspring window shows up, and I close the window without paying. This creates a pending order.

I click on the pay for order button again, the Fastspring window shows up again, and another separate pending order is created.

I don't believe that this was the behavior of the last version, but I haven't tested that yet.

A lot of fields from checkout dissapear

Hi and thanks for the plugin.
I want to ask, all my address and details fields are gone once I install the plugin.
Is expected behavior or is not supposed to work in that way?
I´m using version 6.1.1 of woocommerce.

thanks,
Rai.

Compatibility with Woocommerce Subscriptions?

Hi there,
This month I was able to test the plugin. All working well with normal transactions, thanks!
But is a not working well with Subscriptions from FastSpring or from Woocommerce Subscriptions, the order is mark as pending payment or cancel but was already made, the status does not update itself. And then the Woocommerce Subscriptions is lock tu activate.

I assume this plugin was compatible with Woocommerce Subscriptions, is it? not sure why I assume that.

And I was wondering how much money it is need it to update this plugin and make it compatible with this plugin.

Thanks again!

WebHooks are failing to complete some order but not all.

Notice: Trying to access array offset on value of type null in /var/www/html/wp-content/plugins/woocommerce-fastspring-payment-gateway-master/woocommerce-gateway-fastspring.php on line 378

Notice: Undefined property: stdClass::$reference in /var/www/html/wp-content/plugins/woocommerce-fastspring-payment-gateway-master/includes/class-wc-gateway-fastspring-handler.php on line 288

Adding subscription products to cart works, checkout does not

Hey,

I have three subscription products in my store and they are not working with the gateway. Cart page works fine, but once I or customers hit "proceed to checkout", there is a woocommerce error message:

"There are some issues with the items in your cart. Please go back to the cart page and resolve these issues before checking out."

Woocommerce is latest version to date

Pay for pending orders

If an order is pending for whatever reason and user logs in to pay for it it does not launch FS window.

VAT added in WooCommerce not passed to FastSpring Popup

Hello. First, thank you so much for the hard work on this plugin. I have integrated it into my test site and it seems to be working well so far.

However, I was wondering if I'm missing something. In my store I calculate VAT and add it at checkout before the customer selects a payment option. If the user selects FastSpring then the amount shown in the PopUp Store is the product price excluding VAT. FastSpring then calculates the appropriate VAT and takes it out of this total.

For example, a product of 50€ with 20% VAT shows as 60€ at checkout. In the FastSpring pop-up it shows as 50€ total (8.33€ of VAT). This means I lose 8.33€ when a customer selects FastSpring compared to other methods.

Is it possible to pass the total price (product + VAT) to FastSpring so when they do their own VAT calculations the VAT is already included. The current functionality means that anyone purchasing through FastSpring will have a discount compared to ones paying by other methods.

Thanks for you help.

Linking with Products On FS?

Hi,

How do we link Woocommerce products with those on FS? I haven't been able to find this part in your documentation. Also, the plugin doesn't seem to have any fields that would allow us to enter this information.

Thx,

Piyush

Not getting a checkout window with subscription products

I have started implementing this plugin on a woocommerce store with subscriptions. However, I haven't had any luck getting the Checkout to pop up. I get a flash of the wait icon, but then the pop-up closes without displaying the checkout.

I walked back through all of the Wiki instructions, recreated the ssl, regenerated an API password, and re-pasted the webhook (and re-verified that I had all of the events in the webhook, as well.)

I also made sure to create a product in both stores that had the same SKU and name, but still no pop-up check out.

If you would like to take a look at the store, it is available at https://perfectingsoftware.com/shop/

One other thing, I have turned debugging on, and am not getting a debug log when I check it is Woocommerce > Status > Logs. I see a few others, but nothing from the Fastspring gateway.

On the plus side, the plugin wiki was pretty clear, and the plugin back end walks you through everything that you have to do to get it set up. Thanks for that, it was a real help!

Trouble getting any checkout to load

Hey man, I found this fastspring plugin, and it looks so much better written than the one on the wordpress.org repo. I set it up, with a brand new fastspring account, and I am not getting any success.

Here, I will at least detail my steps:
I have everything filled out, including Access Credentials, Webhooks and API username and password

I am trying to use the popup modal, so my URL for that is
dlicoursesonline.onfastspring.com/popup-dlicoursesonline

I have test mode turned on, and error logging.

When I try to checkout (the modal seems to flicker the screen dark, but then it quickly goes away) I get these JS errors :

dlicoursesonline.test.onfastspring.com/popup-dlicoursesonline/builder:1 Failed to load resource: the server responded with a status of 400 ()
fastspring-builder.min.js?ver=4.9.4:2 [FastSpring API] (!) Error: Error received:  400 payload-invalid
c @ fastspring-builder.min.js?ver=4.9.4:2
dlicoursesonline.test.onfastspring.com/popup-dlicoursesonline/builder/finalize:1 Failed to load resource: the server responded with a status of 400 ()
fastspring-builder.min.js?ver=4.9.4:2 [FastSpring API] (!) Error: Error received:  400 empty-session
c @ fastspring-builder.min.js?ver=4.9.4:2

So the plugin doesnt work by itself for me. Also when I pair it with Stripe (which is what my client wants, is the 2 possible options), then Stripe checkout breaks as well. When I disable this plugin, then I can checkout with Stripe again.

Here is my website for testing:
https://fastspring-dli.pantheonsite.io/
just go to the course catalog and then try to checkout to see what I mean.

I would really appreciate if you have any time to look into this, ping me if you want to chat about it.

Fatal Error

Hi,

Here is an issue I'm experiencing with FastSpring Gateway (this is fatal errors log from woocommerce settings):

2021-01-06T04:25:45+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on bool in /www/onlinestorelegacy_334/public/assets/plugins/woocommerce-fastspring-payment-gateway/includes/class-wc-gateway-fastspring-handler.php:110
Stack trace:
#0 /www/onlinestorelegacy_334/public/wp-includes/class-wp-hook.php(287): WC_Gateway_FastSpring_Handler->ajax_get_receipt('')
#1 /www/onlinestorelegacy_334/public/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#2 /www/onlinestorelegacy_334/public/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /www/onlinestorelegacy_334/public/assets/plugins/woocommerce/includes/class-wc-ajax.php(90): do_action('wc_ajax_wc_fast...')
#4 /www/onlinestorelegacy_334/public/wp-includes/class-wp-hook.php(287): WC_AJAX::do_wc_ajax('')
#5 /www/onlinestorelegacy_334/public/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(false, Array)
#6 /www/onlinestorelegacy_334/public/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#7 /www/onlinestorelegacy_334/public/wp-includes/template in /www/onlinestorelegacy_334/public/assets/plugins/woocommerce-fastspring-payment-gateway/includes/class-wc-gateway-fastspring-handler.php on line 110

Checkout Amount in FastSpring does not represent Cart Quantities

I am making this a separate issue, as the issues may not be connected in the plugin.

1.1.2 seems to have solved the dividing error (dividing the price by the number of items of that type in the cart), but now there is an error when updating the cart. This happens when I am in the cart, and I have selected multiple items with quantities. When I first go to the checkout page, add my info and click the "Place Order" button, I get a price value in the pop up that is for quantity 1 of each item in the cart. When I cancel and click the "Place Order" button again, it updates to the correct value for all items and quantities in the cart.

If I go back to the cart, it resets with this same behavior, so I think that it may be pulling incorrect quantity information from the cart. I added a picture so that you could see the different prices.

Not working with Woocommerce Versión 8.3.1

Hi there,
Since the last update, the plugin has stopped working.
After the making click on checkout, the background becomes black but nothing else after.

I check with my actual theme and other, same thing.
Thanks.

how to send license key in email

how to send dynamic license key to user via Fastspring Email when purchasing product from our site by Fastspring Gateway in WooCommerce.

Thanks,
Jana

Regular payment works, but popup doesn't.

I have similar problem - regular payment works, but popup doesn't.

Everything is setup correctly. I can see access token included in code (I changed url and access key for privacy):

<script type="text/javascript" id="fsc-api" data-storefront="mysite.onfastspring.com" data-before-requests-callback="fastspringBeforeRequestHandler" data-access-key="here-is-access-key-from-settings-matching-the-one-provided-by-fastspring" data-debug="true" data-test="yes" data-version="1.2.2" data-data-callback="dataCallbackFunction" data-error-callback="errorCallback" data-popup-closed="fastspringPopupCloseHandler" src="https://d1f8f9xcsvx3ha.cloudfront.net/sbl/0.7.6/fastspring-builder.min.js?ver=5.4"></script>

And code for popup (got this form FS site):

<script id="fsc-api" src="https://d1f8f9xcsvx3ha.cloudfront.net/sbl/0.8.3/fastspring-builder.min.js" type="text/javascript" data-storefront="mysite.onfastspring.com/popup-mysite">
</script>

Domain is virtual localhost and it is whitelisted.

I get this error:
[FastSpring API] No access key found in payload.
[FastSpring API] (!) Error: Error received: 400 empty-session

WooCommerce status log is empty and test and logging is enabled in plugin settings...

Originally posted by @kskrlinnorth2 in #19 (comment)

Integration with WooCommerce subscriptions

Hello there,

I want to know if this plugin supports WooCommerce subscriptions? My concern is because I have a recurring paid membership business.

In case your answer is no, I would like to know if you can help me do this integration and how much would you charge me for doing it?

Thank you.

Does this plugin still work?

I need to add FastSpring as a payment gateway in WooCommerce and I've just found this project, but I see it hasn't been updated for some time.
Does it still work and can I use it in my use case?

Fix issue for Nginx

if (!function_exists('getallheaders'))  {
    function getallheaders()
    {
        if (!is_array($_SERVER)) {
            return array();
        }

        $headers = array();
        foreach ($_SERVER as $name => $value) {
            if (substr($name, 0, 5) == 'HTTP_') {
                $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
            }
        }
        return $headers;
    }
}

Storefront popup opens and close immediately.

Capture

I am getting 400 variation-not-found error when I click on the checkout button through my application.
I have whitelisted my local host URL, also checked the access token still getting this error.

Issues with updating cart

There is an issue with updating the cart for item quantities before checking out. For some reason, the gateway is not retrieving an updated value for the items in the cart. It is causing something strange to happen in the fastspring checkout window.

Here are some images showing the differences:

ex1

ex2

To replicate:

  1. Add several items to the cart. (subscriptions)
  2. Go to the cart and change the values of the subscriptions up and down.
  3. Update the cart.
  4. Go to checkout.
  5. Checkout, and the value in fastspring will be different than the value in the Woocommerce cart and checkout page.

Thoughts?

API is not working => woocommerce "order cancelled"

Hello Yashua,

Congratulations on this plugin. It really looks great and easy to use.
I have a small issue with API.

I have seen your troubleshooting document, and searched google...
But I can't solve the API connection issue between Fastspring and the WP FS plugin.

Here is what I get in the "inspect element" from chrome (attached)

I repeat: the credentials for API are correct double checket, and also made new credentials and still the same. So that I need the API to get woocommerce notified about the payment and to make it completed.

The webhook cannot be used because of the hosting .. "handshake_failure" caused by the unsupported ciphers.. And I don't know if there is another solution for the webhook than changing the hosting..

Please help me to solve this.
I would really appreciate your time and help.

Best,
Balazs

Screenshot 2019-08-12 at 03 37 04

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.