Open untuned opened 2 years ago
did paypal change their api endpoint bullshit again?
did paypal change their api endpoint bullshit again?
No actually, here's the issue:
Cannot invoke "org.bukkit.entity.Player.getName()" because "player" is null
https://github.com/TheoBong/Store/blob/9112cbea19c745b5f6b22f8b1f8d90a13731457c/src/main/java/io/github/paypal/CaptureOrder.java#L66
I'm running the plugin on a 1.19.2 server.
Current: git-Purpur-1774 (MC: 1.19.2)*
Previous: git-Purpur-1770 (MC: 1.19.2)
* You are running the latest version
Its null because theres an issue up the line when the paypal API call is made. If the paypal api returns an error instead of the response expected (when i wrote this), it will cause issues down the line. I'm 90% sure its a paypal api change that broke the plugin since this didn't happen when I wrote it.
I might fix this in the future or more likely, just rewrite. Don't be counting on it anytime soon though. Feel free to add it yourself and make a pull request though.