Git Product home page Git Product logo

Comments (7)

NiklasHogefjord avatar NiklasHogefjord commented on September 23, 2024

@OskarOstlund You need to use the current version of this plugin to check this: https://github.com/Billmate/billmate-order-mangement-for-woocommerce. Can you test again?

from billmate-checkout-for-woocommerce.

OskarOstlund avatar OskarOstlund commented on September 23, 2024

Having pulled the latest version of the master branch both in order management and checkout do I not even get any "Billmate reservation was successfully cancelled is created." notification nor is the order cancelled in BO. This is despite me first setting the order as Processing/Behandlas, then setting the status as cancelled/avbruten.

Or do you have it committed to another branch?

from billmate-checkout-for-woocommerce.

NiklasHogefjord avatar NiklasHogefjord commented on September 23, 2024

@OskarOstlund You should not need to set the order status to "Processing" first. Can you see that the order is successfully placed initially, before you try to cancel it from WooCommerce?

The order notes should look something like this if everything is ok:

image

from billmate-checkout-for-woocommerce.

OskarOstlund avatar OskarOstlund commented on September 23, 2024

image
Even a successful order that is made as "Processing" without my help is not given the correct return nor do I see any changes on BO.

And if it does not need to be "processing" before we update it maybe we should change the order management introduction page that claims that an order needs to be processing.

from billmate-checkout-for-woocommerce.

NiklasHogefjord avatar NiklasHogefjord commented on September 23, 2024

I tested now. Here is the data we send and receive in the cancel request:

09 - 03 - 2020 @ 16: 43: 23 - {
	"id": "217327",
	"type": "POST",
	"title": "BOM cancel payment",
	"request": {
		"headers": {
			"Content-Type": "application\/json"
		},
		"method": "POST",
		"body": {
			"credentials": {
				"id": "17882",
				"hash": "d661a04e386c9fe2a8a07710f17ebc15196eba0fd9f4901213195c5e6de4a1a078145bebca22aa371b586a7c24b880ef7034a9f4d42bd385c679853f3b712bbc",
				"test": "true",
				"version": "WordPress: 5.5.1. WooCommerce: 4.4.1. BOM:1.0.0. PHP Version: 7.3.16. Krokedil",
				"client": "Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/85.0.4183.83 Safari\/537.36"
			},
			"data": {
				"number": "217327"
			},
			"function": "cancelPayment"
		},
		"timeout": 10
	},
	"response": {
		"body": {
			"credentials": {
				"hash": "f362f8428bd97c53743c8fdb363f7322cef623bb0d3096a8be23246bac94fcb4887e893e46df20040c06be3d5d227663486ddbb585972583029e1910cd2d6c73",
				"logid": 39078581
			},
			"data": {
				"number": "217327",
				"orderid": "936537",
				"status": "Cancelled",
				"url": "https:\/\/api.billmate.se\/invoice\/17882\/202009033f2b21f68451acedff6dab91797dfd5e"
			}
		},
		"code": 200
	},
	"timestamp": "2020-09-03 14:43:23",
	"plugin_version": "1.0.0"
}

The order notes for the order looks like this:

image

I have updated the Order Management plugin so no cancel request is sent to Billmate if the order hasn't been payed for.

from billmate-checkout-for-woocommerce.

MattiasNilsson avatar MattiasNilsson commented on September 23, 2024

@NiklasHogefjord This one is now approved according to me!

from billmate-checkout-for-woocommerce.

NiklasHogefjord avatar NiklasHogefjord commented on September 23, 2024

Thanks!

from billmate-checkout-for-woocommerce.

Related Issues (20)

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.