Changeset 3327589
- Timestamp:
- 07/14/2025 02:53:11 PM (9 months ago)
- Location:
- svea-webpay-for-woocommerce
- Files:
-
- 4 added
- 44 edited
- 1 copied
-
tags/4.0.2 (copied) (copied from svea-webpay-for-woocommerce/trunk)
-
tags/4.0.2/inc/Scripts.php (modified) (1 diff)
-
tags/4.0.2/readme.txt (modified) (3 diffs)
-
tags/4.0.2/svea-webpay-for-woocommerce.php (modified) (2 diffs)
-
tags/4.0.2/vendor/autoload.php (modified) (1 diff)
-
tags/4.0.2/vendor/composer/autoload_classmap.php (modified) (2 diffs)
-
tags/4.0.2/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/4.0.2/vendor/composer/autoload_static.php (modified) (4 diffs)
-
tags/4.0.2/vendor/composer/installed.json (modified) (6 diffs)
-
tags/4.0.2/vendor/composer/installed.php (modified) (2 diffs)
-
tags/4.0.2/vendor/composer/platform_check.php (modified) (1 diff)
-
tags/4.0.2/vendor/sveaekonomi/checkout/README.md (modified) (46 diffs)
-
tags/4.0.2/vendor/sveaekonomi/checkout/VERSION (modified) (1 diff)
-
tags/4.0.2/vendor/sveaekonomi/checkout/composer.json (modified) (2 diffs)
-
tags/4.0.2/vendor/sveaekonomi/checkout/src/CheckoutClient.php (modified) (1 diff)
-
tags/4.0.2/vendor/sveaekonomi/checkout/src/Implementation/ChangePaymentMethod.php (added)
-
tags/4.0.2/vendor/sveaekonomi/checkout/src/Implementation/ImplementationFactory.php (modified) (9 diffs)
-
tags/4.0.2/vendor/sveaekonomi/checkout/src/Validation/ValidateChangePaymentMethodData.php (added)
-
tags/4.0.2/vendor/sveaekonomi/webpay/composer.json (modified) (1 diff)
-
tags/4.0.2/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/FixedDiscount.php (modified) (2 diffs)
-
tags/4.0.2/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/InvoiceFee.php (modified) (1 diff)
-
tags/4.0.2/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/OrderRow.php (modified) (1 diff)
-
tags/4.0.2/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/RelativeDiscount.php (modified) (1 diff)
-
tags/4.0.2/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/ShippingFee.php (modified) (1 diff)
-
tags/4.0.2/vendor/sveaekonomi/webpay/version.json (modified) (1 diff)
-
trunk/inc/Scripts.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/svea-webpay-for-woocommerce.php (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_classmap.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (4 diffs)
-
trunk/vendor/composer/installed.json (modified) (6 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/vendor/composer/platform_check.php (modified) (1 diff)
-
trunk/vendor/sveaekonomi/checkout/README.md (modified) (46 diffs)
-
trunk/vendor/sveaekonomi/checkout/VERSION (modified) (1 diff)
-
trunk/vendor/sveaekonomi/checkout/composer.json (modified) (2 diffs)
-
trunk/vendor/sveaekonomi/checkout/src/CheckoutClient.php (modified) (1 diff)
-
trunk/vendor/sveaekonomi/checkout/src/Implementation/ChangePaymentMethod.php (added)
-
trunk/vendor/sveaekonomi/checkout/src/Implementation/ImplementationFactory.php (modified) (9 diffs)
-
trunk/vendor/sveaekonomi/checkout/src/Validation/ValidateChangePaymentMethodData.php (added)
-
trunk/vendor/sveaekonomi/webpay/composer.json (modified) (1 diff)
-
trunk/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/FixedDiscount.php (modified) (2 diffs)
-
trunk/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/InvoiceFee.php (modified) (1 diff)
-
trunk/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/OrderRow.php (modified) (1 diff)
-
trunk/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/RelativeDiscount.php (modified) (1 diff)
-
trunk/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/ShippingFee.php (modified) (1 diff)
-
trunk/vendor/sveaekonomi/webpay/version.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
svea-webpay-for-woocommerce/tags/4.0.2/inc/Scripts.php
r3319942 r3327589 128 128 ]; 129 129 130 $svea_data['isPayPage'] = is_checkout () ? true : false;130 $svea_data['isPayPage'] = is_checkout_pay_page() ? true : false; 131 131 132 132 if ( is_checkout_pay_page() ) { -
svea-webpay-for-woocommerce/tags/4.0.2/readme.txt
r3324086 r3327589 10 10 License: Apache 2.0 11 11 License URI: https://www.apache.org/licenses/LICENSE-2.0 12 Stable tag: 4.0. 112 Stable tag: 4.0.2 13 13 14 14 The Svea Stand Alone payment module is a complete solution for shops using WordPress / WooCommerce as an e-commerce platform. … … 39 39 == Upgrade Notice == 40 40 41 = 4.0.2 = 42 4.0.2 is a patch release. 43 41 44 = 4.0.1 = 42 45 4.0.1 is a patch release. … … 54 57 55 58 == Changelog == 59 60 = 4.0.2 2025-07-09 = 61 * Correct pay page logic, fixing issues with get address. 56 62 57 63 = 4.0.1 2025-07-08 = -
svea-webpay-for-woocommerce/tags/4.0.2/svea-webpay-for-woocommerce.php
r3324086 r3327589 4 4 * Plugin Name: Svea Stand Alone for WooCommerce 5 5 * Description: Supercharge your WooCommerce Store with powerful features to pay via Svea Credit card, Invoice, Part Payment, Trustly, Swish, MobilePay and Vipps. 6 * Version: 4.0. 16 * Version: 4.0.2 7 7 * Author: The Generation 8 8 * Author URI: https://thegeneration.se/ … … 37 37 * @var string 38 38 */ 39 const VERSION = '4.0. 1';39 const VERSION = '4.0.2'; 40 40 41 41 /** -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/autoload.php
r3319942 r3327589 20 20 require_once __DIR__ . '/composer/autoload_real.php'; 21 21 22 return ComposerAutoloaderInit 33686362a7e49595b5bc1ca0cfcfc4ae::getLoader();22 return ComposerAutoloaderInitbc30d1434a3a88a158b0c9e929d8f6f0::getLoader(); -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/composer/autoload_classmap.php
r3319942 r3327589 28 28 'Svea\\Checkout\\Implementation\\Admin\\ReplaceOrderRows' => $vendorDir . '/sveaekonomi/checkout/src/Implementation/Admin/ReplaceOrderRows.php', 29 29 'Svea\\Checkout\\Implementation\\Admin\\UpdateOrderRow' => $vendorDir . '/sveaekonomi/checkout/src/Implementation/Admin/UpdateOrderRow.php', 30 'Svea\\Checkout\\Implementation\\ChangePaymentMethod' => $vendorDir . '/sveaekonomi/checkout/src/Implementation/ChangePaymentMethod.php', 30 31 'Svea\\Checkout\\Implementation\\CreateOrder' => $vendorDir . '/sveaekonomi/checkout/src/Implementation/CreateOrder.php', 31 32 'Svea\\Checkout\\Implementation\\CreateTokenOrder' => $vendorDir . '/sveaekonomi/checkout/src/Implementation/CreateTokenOrder.php', … … 59 60 'Svea\\Checkout\\Validation\\Admin\\ValidateReplaceOrderRowsData' => $vendorDir . '/sveaekonomi/checkout/src/Validation/Admin/ValidateReplaceOrderRowsData.php', 60 61 'Svea\\Checkout\\Validation\\Admin\\ValidateUpdateOrderRowData' => $vendorDir . '/sveaekonomi/checkout/src/Validation/Admin/ValidateUpdateOrderRowData.php', 62 'Svea\\Checkout\\Validation\\ValidateChangePaymentMethodData' => $vendorDir . '/sveaekonomi/checkout/src/Validation/ValidateChangePaymentMethodData.php', 61 63 'Svea\\Checkout\\Validation\\ValidateCreateOrderData' => $vendorDir . '/sveaekonomi/checkout/src/Validation/ValidateCreateOrderData.php', 62 64 'Svea\\Checkout\\Validation\\ValidateCreateTokenOrderData' => $vendorDir . '/sveaekonomi/checkout/src/Validation/ValidateCreateTokenOrderData.php', -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/composer/autoload_real.php
r3319942 r3327589 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 33686362a7e49595b5bc1ca0cfcfc4ae5 class ComposerAutoloaderInitbc30d1434a3a88a158b0c9e929d8f6f0 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 33686362a7e49595b5bc1ca0cfcfc4ae', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitbc30d1434a3a88a158b0c9e929d8f6f0', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 33686362a7e49595b5bc1ca0cfcfc4ae', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitbc30d1434a3a88a158b0c9e929d8f6f0', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 33686362a7e49595b5bc1ca0cfcfc4ae::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitbc30d1434a3a88a158b0c9e929d8f6f0::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/composer/autoload_static.php
r3319942 r3327589 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 33686362a7e49595b5bc1ca0cfcfc4ae7 class ComposerStaticInitbc30d1434a3a88a158b0c9e929d8f6f0 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 53 53 'Svea\\Checkout\\Implementation\\Admin\\ReplaceOrderRows' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Implementation/Admin/ReplaceOrderRows.php', 54 54 'Svea\\Checkout\\Implementation\\Admin\\UpdateOrderRow' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Implementation/Admin/UpdateOrderRow.php', 55 'Svea\\Checkout\\Implementation\\ChangePaymentMethod' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Implementation/ChangePaymentMethod.php', 55 56 'Svea\\Checkout\\Implementation\\CreateOrder' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Implementation/CreateOrder.php', 56 57 'Svea\\Checkout\\Implementation\\CreateTokenOrder' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Implementation/CreateTokenOrder.php', … … 84 85 'Svea\\Checkout\\Validation\\Admin\\ValidateReplaceOrderRowsData' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Validation/Admin/ValidateReplaceOrderRowsData.php', 85 86 'Svea\\Checkout\\Validation\\Admin\\ValidateUpdateOrderRowData' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Validation/Admin/ValidateUpdateOrderRowData.php', 87 'Svea\\Checkout\\Validation\\ValidateChangePaymentMethodData' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Validation/ValidateChangePaymentMethodData.php', 86 88 'Svea\\Checkout\\Validation\\ValidateCreateOrderData' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Validation/ValidateCreateOrderData.php', 87 89 'Svea\\Checkout\\Validation\\ValidateCreateTokenOrderData' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Validation/ValidateCreateTokenOrderData.php', … … 342 344 { 343 345 return \Closure::bind(function () use ($loader) { 344 $loader->prefixLengthsPsr4 = ComposerStaticInit 33686362a7e49595b5bc1ca0cfcfc4ae::$prefixLengthsPsr4;345 $loader->prefixDirsPsr4 = ComposerStaticInit 33686362a7e49595b5bc1ca0cfcfc4ae::$prefixDirsPsr4;346 $loader->classMap = ComposerStaticInit 33686362a7e49595b5bc1ca0cfcfc4ae::$classMap;346 $loader->prefixLengthsPsr4 = ComposerStaticInitbc30d1434a3a88a158b0c9e929d8f6f0::$prefixLengthsPsr4; 347 $loader->prefixDirsPsr4 = ComposerStaticInitbc30d1434a3a88a158b0c9e929d8f6f0::$prefixDirsPsr4; 348 $loader->classMap = ComposerStaticInitbc30d1434a3a88a158b0c9e929d8f6f0::$classMap; 347 349 348 350 }, null, ClassLoader::class); -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/composer/installed.json
r3319942 r3327589 3 3 { 4 4 "name": "sveaekonomi/checkout", 5 "version": "1. 5.3",6 "version_normalized": "1. 5.3.0",5 "version": "1.6.0", 6 "version_normalized": "1.6.0.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/sveawebpay/php-checkout.git", 10 "reference": " 6241c3f894322775a8d574843f56bf1e2df884c1"10 "reference": "d184c949b60b96595cb786320bf049a5fbaf91df" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://api.github.com/repos/sveawebpay/php-checkout/zipball/ 6241c3f894322775a8d574843f56bf1e2df884c1",15 "reference": " 6241c3f894322775a8d574843f56bf1e2df884c1",14 "url": "https://api.github.com/repos/sveawebpay/php-checkout/zipball/d184c949b60b96595cb786320bf049a5fbaf91df", 15 "reference": "d184c949b60b96595cb786320bf049a5fbaf91df", 16 16 "shasum": "" 17 17 }, … … 29 29 "symfony/dependency-injection": "^2.7.51 || ^2.8.50 || ^3.4.26 || ^4.1.12 || ^4.2.7" 30 30 }, 31 "time": "202 4-11-13T10:20:09+00:00",31 "time": "2025-06-30T13:03:15+00:00", 32 32 "type": "library", 33 33 "installation-source": "dist", … … 50 50 "support": { 51 51 "issues": "https://github.com/sveawebpay/php-checkout/issues", 52 "source": "https://github.com/sveawebpay/php-checkout/tree/1. 5.3"52 "source": "https://github.com/sveawebpay/php-checkout/tree/1.6.0" 53 53 }, 54 54 "install-path": "../sveaekonomi/checkout" … … 56 56 { 57 57 "name": "sveaekonomi/webpay", 58 "version": "3.16. 0",59 "version_normalized": "3.16. 0.0",58 "version": "3.16.1", 59 "version_normalized": "3.16.1.0", 60 60 "source": { 61 61 "type": "git", 62 62 "url": "https://github.com/sveawebpay/php-integration.git", 63 "reference": " deda4e94e2558d8de02887425e8dc5fa241376b7"63 "reference": "277dccf36e9bc7c82530cdf8d3572ec5c2e98810" 64 64 }, 65 65 "dist": { 66 66 "type": "zip", 67 "url": "https://api.github.com/repos/sveawebpay/php-integration/zipball/ deda4e94e2558d8de02887425e8dc5fa241376b7",68 "reference": " deda4e94e2558d8de02887425e8dc5fa241376b7",67 "url": "https://api.github.com/repos/sveawebpay/php-integration/zipball/277dccf36e9bc7c82530cdf8d3572ec5c2e98810", 68 "reference": "277dccf36e9bc7c82530cdf8d3572ec5c2e98810", 69 69 "shasum": "" 70 70 }, … … 78 78 "phpunit/phpunit": "^8" 79 79 }, 80 "time": "2025-0 6-26T08:40:15+00:00",80 "time": "2025-07-14T14:44:38+00:00", 81 81 "type": "library", 82 82 "installation-source": "dist", … … 99 99 "support": { 100 100 "issues": "https://github.com/sveawebpay/php-integration/issues", 101 "source": "https://github.com/sveawebpay/php-integration/tree/3.16. 0"101 "source": "https://github.com/sveawebpay/php-integration/tree/3.16.1" 102 102 }, 103 103 "install-path": "../sveaekonomi/webpay" -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/composer/installed.php
r3319942 r3327589 12 12 'versions' => array( 13 13 'sveaekonomi/checkout' => array( 14 'pretty_version' => '1. 5.3',15 'version' => '1. 5.3.0',16 'reference' => ' 6241c3f894322775a8d574843f56bf1e2df884c1',14 'pretty_version' => '1.6.0', 15 'version' => '1.6.0.0', 16 'reference' => 'd184c949b60b96595cb786320bf049a5fbaf91df', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../sveaekonomi/checkout', … … 21 21 ), 22 22 'sveaekonomi/webpay' => array( 23 'pretty_version' => '3.16. 0',24 'version' => '3.16. 0.0',25 'reference' => ' deda4e94e2558d8de02887425e8dc5fa241376b7',23 'pretty_version' => '3.16.1', 24 'version' => '3.16.1.0', 25 'reference' => '277dccf36e9bc7c82530cdf8d3572ec5c2e98810', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../sveaekonomi/webpay', -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/composer/platform_check.php
r2981521 r3327589 20 20 } 21 21 } 22 trigger_error( 23 'Composer detected issues in your platform: ' . implode(' ', $issues), 24 E_USER_ERROR 22 throw new \RuntimeException( 23 'Composer detected issues in your platform: ' . implode(' ', $issues) 25 24 ); 26 25 } -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/sveaekonomi/checkout/README.md
r3065202 r3327589 9 9 * [6. Create recurring order](#6-create-recurring-order) 10 10 * [7. Get recurring order](#7-get-recurring-order) 11 * [8. Response](#8-response) 12 * [9. Additional requests](#9-additional-requests) 13 * [10. Data structures](#10-data-structures) 14 * [11. HttpStatusCodes](#11-httpstatuscodes) 15 * [12. Order administration](#12-order-administration) 16 * [13. Javascript API](#13-javascript-api) 11 * [8. Change payment method for recurring order](#8-change-payment-method-for-recurring-order) 12 * [9. Response](#9-response) 13 * [10. Additional requests](#10-additional-requests) 14 * [11. Data structures](#11-data-structures) 15 * [12. HttpStatusCodes](#12-httpstatuscodes) 16 * [13. Order administration](#13-order-administration) 17 * [14. Javascript API](#14-javascript-api) 17 18 ## Introduction 18 19 The checkout offers a complete solution with a variety of payment methods. The payment methods that are currently available in the checkout are invoice, payment plan, account credit, card payments and payment by bank. 19 20 20 21 21 The checkout supports both B2C and B2B payments, fast customer identification and caches customers behavio ur.22 The checkout supports both B2C and B2B payments, fast customer identification and caches customers behavior. 22 23 23 24 … … 135 136 | IdentityFlags | | Array of [*IdentityFlags*](#1012-identityflags) | Array of [*IdentityFlags*](#812-identityflags) used to hide certain features of the iframe | 136 137 | PartnerKey | | Guid | Optional, provided by Svea on request. Used to create statistics. | 137 | Recurring | | Boolean | Optional, if set to true the order will be a recurring order. (Only av ilable if the merchant account has this feature enabled) |138 | Recurring | | Boolean | Optional, if set to true the order will be a recurring order. (Only available if the merchant account has this feature enabled) | 138 139 | MerchantData | | String | Metadata visible in the checkout API, returned when the order is fetched through the API. | 139 140 … … 375 376 ``` 376 377 377 ### 8. Response 378 ### 8. Change payment method for recurring order 379 Svea Checkout allows you to let customers change the payment method for an existing recurring order. 380 This feature is useful if a customer's card expires. 381 382 #### Prerequisites 383 - The recurring order must be created and active. 384 - You need a "token" associated with the subscription. 385 386 #### How it works 387 You use the changePaymentMethod endpoint via the \Svea\Checkout\CheckoutClient. 388 This will generate a new checkout session where the customer can select a new payment method. 389 Once the customer completes the flow, the new payment method will be linked to the recurring order. 390 391 #### Example 392 ```php 393 // include the library 394 include 'vendor/autoload.php'; 395 396 // without composer 397 require_once 'include.php'; 398 399 $checkoutClient = new \Svea\Checkout\CheckoutClient($connector); 400 401 $data = [ 402 'token' => '12345678-90ab-cdef-1234-567890abcdef', 403 'termsUrl' => 'http://yourdomain.se/terms' 404 ]; 405 406 $response = $checkoutClient->changePaymentMethod($data); 407 408 // Show the customer this snippet that lets them select a new payment method. 409 $sveaCheckoutIframe = $response['Gui']['Snippet'] ?? null; 410 echo $sveaCheckoutIframe ?: ''; 411 ``` 412 413 After the customer has completed the payment method change, Svea will update the payment details on the current token. No change needed from your side. 414 415 ### 9. Response 378 416 The response contains information about the order such as Cart, Status, PaymentType and much more. 379 417 … … 542 580 echo $response['Gui']['Snippet'] 543 581 ``` 544 ### 9. Additional requests545 546 #### 9.1 GetAvailablePartPaymentCampaigns582 ### 10. Additional requests 583 584 #### 10.1 GetAvailablePartPaymentCampaigns 547 585 548 586 GetAvailablePartPaymentCampaigns can be used to fetch the details of all the campaigns that are available on the merchant … … 635 673 If you are a finnish merchant you have to display ALL the values described [here](https://www.kkv.fi/sv/beslut-och-publikationer/publikationer/konsumentrombudsmannens-riktlinjer/enligt-substans/tillhandahallande-av-konsumentkrediter/#luottolinjausSVE5.1) to be compliant with finnish laws. 636 674 637 ### 1 0. Data structures638 639 #### 1 0.1 MerchantSettings675 ### 11. Data structures 676 677 #### 11.1 MerchantSettings 640 678 641 679 | Parameters | Required | Type | Description | Limits | 642 680 |------------------------------|-----------|-----------|--------------|---------| 643 | TermsUri | * | string | URI to a page which contains terms of the web shop. | 1-500 characters, must be a valid Url |644 | CheckoutUri | * | string | URI to the page in the web shop that loads the Checkout. | 1-500 characters, must be a valid Url |645 | ConfirmationUri | * | string | URI to the page in the web shop displaying specific information to a customer after the order has been confirmed. | 1-500 characters, must be a valid Url |681 | TermsUri | * | string | URI to a page which contains terms of the web shop. | 1-500 characters, must be a valid Url | 682 | CheckoutUri | * | string | URI to the page in the web shop that loads the Checkout. | 1-500 characters, must be a valid Url | 683 | ConfirmationUri | * | string | URI to the page in the web shop displaying specific information to a customer after the order has been confirmed. | 1-500 characters, must be a valid Url | 646 684 | PushUri | * | string | URI to a location that is expecting callbacks when CheckoutOrderStatus is changed. Uri should use the {checkout.order.uri} placeholder. | 1-500 characters, must be a valid Url | 647 685 | CheckoutValidationCallBackUri| | string | An optional URl to a location that is expecting callbacks from the Checkout to validate order’s stock status, and also the possibility to update checkout with an updated ClientOrderNumber. Uri may have a {checkout.order.uri} placeholder which will be replaced with the CheckoutOrderId. Please refer below [*CheckoutValidationCallbackResponse*](#1013-checkoutvalidationcallbackresponse) to see the expected response. | 1-500 characters, must be a valid Url | … … 649 687 | PromotedPartPaymentCampaign | | integer | Valid CampaignID. If used then the chosen campaign will be shown as the first payment method in all payment method lists. | Must be valid CampaignID | 650 688 651 #### 1 0.2 Items689 #### 11.2 Items 652 690 653 691 | Parameters | Required | Type | Description | … … 655 693 | Items | * | List of [*OrderRows*](#103-orderrow) | See structure below | 656 694 657 #### 1 0.3 OrderRow695 #### 11.3 OrderRow 658 696 659 697 | Parameters | Required | Type | Description | Limits | 660 698 |------------------------------|------------|-----------|--------------|---------| 661 | ArticleNumber | | String | Article number as a string, can contain letters and numbers. | Maximum 1000 characters |699 | ArticleNumber | | String | Article number as a string, can contain letters and numbers. | Maximum 1000 characters | 662 700 | Name | * | String | Article name | 1-40 characters | 663 701 | Quantity | * | Integer | Set as basis point (1/100) e.g 2 = 200 | 1-9 digits. Minor currency | 664 702 | UnitPrice | * | Integer | Set as basis point (1/100) e.g. 25.00 = 2500 | 1-13 digits, can be negative. Minor currency | 665 | DiscountPercent | | Integer | The discount percent of the product. | 0-100 |703 | DiscountPercent | | Integer | The discount percent of the product. | 0-100 | 666 704 | VatPercent | * | Integer | The VAT percentage of the current product. | Valid vat percentage for that country. Minor currency. | 667 705 | Unit | | String | The unit type, e.g., “st”, “pc”, “kg” etc. | 0-4 characters| 668 | TemporaryReference | | String | Can be used when creating or updating an order. The returned rows will have their corresponding temporaryreferenceas they were given in the indata. It will not be stored and will not be returned in GetOrder. | |706 | TemporaryReference | | String | Can be used when creating or updating an order. The returned rows will have their corresponding "temporaryreference" as they were given in the indata. It will not be stored and will not be returned in GetOrder. | | 669 707 | MerchantData | | String | Can be used to store data, the data is not displayed anywhere but in the API 670 708 671 #### 1 0.4 PresetValue709 #### 11.4 PresetValue 672 710 673 711 | Parameters | Required | Type | Description | … … 685 723 | PhoneNumber | String | | 1-18 digits, can include “+”, “-“s and space | 686 724 | PostalCode | String | | Company specific validation | 687 | IsCompany | Boolean | | Required if nationalidis set |688 689 #### 1 0.5 Gui725 | IsCompany | Boolean | | Required if "nationalid" is set | 726 727 #### 11.5 Gui 690 728 691 729 | Parameters | Type | Description | … … 694 732 | Snippet | String | HTML-snippet including javascript to populate the iFrame. | 695 733 696 #### 1 0.6 Customer734 #### 11.6 Customer 697 735 698 736 | Parameters | Type | Description | 699 737 |------------------------------|-----------|--------------| 700 | NationalId | String | Personal- or organization number. |701 | IsCompany | Boolean | True if nationalId is organisation number, false if nationalid is personalnumber. |738 | NationalId | String | Personal- or organization number. | 739 | IsCompany | Boolean | True if nationalId is organisation number, false if "nationalid" is personal number. | 702 740 | CountryCode | String | Defined by two-letter ISO 3166-1 alpha-2, i.e. SE, DE, FI etc.| 703 741 | Id | Integer | Customer-specific id | 704 742 705 #### 1 0.7 Address743 #### 11.7 Address 706 744 707 745 | Parameters | Type | Description | … … 718 756 | AddressLines | Array of strings | Null unless international flow is used 719 757 720 #### 1 0.8 CheckoutOrderStatus758 #### 11.8 CheckoutOrderStatus 721 759 722 760 The order can only be considered “ready to send to customer” when the CheckoutOrderStatus is Final. No other status can guarantee payment. … … 728 766 | Final | The order is completed in the checkout and managed by WebPay’s subsystems. The order can now be administrated using either the library or browsing to the admin user interface| 729 767 730 #### 1 0.9 Locale768 #### 11.9 Locale 731 769 | Parameter | Description | 732 770 |-----------|-----------------| … … 739 777 740 778 741 #### 1 0.10 PaymentType779 #### 11.10 PaymentType 742 780 | Parameter | Description | 743 781 |-------------|-----------------| … … 755 793 | LEASINGUNAPPROVED | Leasing (Manual approve process by Sveas leasing department, check Store pay admin page) | 756 794 | LEASINGAPPROVED | Leasing (Automatically approved leasing contract) 757 | TRUSTLY | The customer pai ed with Trustly |795 | TRUSTLY | The customer paid with Trustly | 758 796 | Directbank (varies) | The customer paid the order with direct bank e.g. Nordea, SEB. See below for all available parameters | 759 797 … … 778 816 779 817 780 #### 1 0.11 CampaignCodeInfo818 #### 11.11 CampaignCodeInfo 781 819 | Parameter | Type | Description | 782 820 |---------------------------|-----------|-------------| … … 794 832 | PaymentPlanType | Integer | Type of campaign | 795 833 796 #### 1 0.12 IdentityFlags834 #### 11.12 IdentityFlags 797 835 | Parameter | Type | Description | 798 836 |---------------------------|-----------|-------------| … … 801 839 | HideAnonymous | Boolean | Hides anonymous flow, forcing users to identify with their nationalId to perform a purchase | 802 840 803 #### 1 0.13 CheckoutValidationCallbackResponse841 #### 11.13 CheckoutValidationCallbackResponse 804 842 If a CheckoutValidationCallbackUri is set on an order when it's created, Svea will send a HTTP GET request to the specified URI when a customer clicks on "Confirm Order". 805 843 … … 811 849 | ClientOrderNumber | | String | Max 32 characters. Set if you want the ClientOrderNumber to be updated. | 812 850 813 ### 1 1. HttpStatusCodes851 ### 12. HttpStatusCodes 814 852 | Parameter | Type | Description | 815 853 |-----------|---------------|-------------| … … 827 865 If the returned ResultCode is not present in the above tables please contact Svea Ekonomi for further information. 828 866 829 ## 1 2. Order administration867 ## 13. Order administration 830 868 831 869 [See full examples](examples/admin) … … 843 881 \Exception - For any other error 844 882 845 ### 1 2.1 Get order883 ### 13.1 Get order 846 884 This method is used to get the entire order with all its relevant information. Including its deliveries, rows, credits and addresses. 847 885 … … 856 894 | Parameters OUT | Type | Description | 857 895 |-------------------------------|-----------|--------------| 858 | Order | array | An array containing all the order details. See [1 2.14 Data objects](#1215-data-objects) |859 860 861 862 ### 1 2.2 Get task896 | Order | array | An array containing all the order details. See [13.14 Data objects](#1215-data-objects) | 897 898 899 900 ### 13.2 Get task 863 901 A task will explain the status of a previously performed operation. When finished it will point towards the new resource with the Location. 864 902 #### Parameters … … 874 912 | Task | [Task](#12154-task) | An object containing details regarding a queued task | 875 913 876 ### 1 2.3 Deliver order914 ### 13.3 Deliver order 877 915 Creates a delivery on a checkout order. Assuming the order got the **CanDeliverOrder** action. 878 916 … … 894 932 | HeaderLocation | string | URI to the created task. (Absolute URL) | 895 933 896 ### 1 2.3.1 Row Delivery Options934 ### 13.3.1 Row Delivery Options 897 935 898 936 | Parameter | Type | Description | … … 901 939 | quantity | int | Number of items to credit | 902 940 903 ### 1 2.4 Deliver order with lower amount941 ### 13.4 Deliver order with lower amount 904 942 Creates a delivery on a checkout order with a lower amount than the total, canceling the remaining amount. Assuming the order got **CanDeliverOrder** and **CanCancelAmount** action. 905 943 … … 918 956 | HeaderLocation | string | URI to the created task (Absolute URL) | 919 957 920 ### 1 2.5 Cancel Order958 ### 13.5 Cancel Order 921 959 Cancel an order before it has been delivered. Assuming the order has the action **CanCancelOrder**. 922 960 … … 930 968 If the order is successfully cancelled, Response is empty. 931 969 932 ### 1 2.6 Cancel order amount970 ### 13.6 Cancel order amount 933 971 By specifying a higher amount than the current order cancelled amount then the order cancelled amount will increase, 934 972 assuming the order has the action **CanCancelOrderAmount**. The delta between the new *CancelledAmount* and the former *CancelledAmount* will be cancelled. … … 946 984 If order amount is successfully cancelled, Response is empty. 947 985 948 ### 1 2.7 Cancel order row986 ### 13.7 Cancel order row 949 987 Changes the status of an order row to *Cancelled*, assuming the order has the action **CanCancelOrderRow** and the OrderRow has the action **CanCancelRow**. 950 988 … … 959 997 If order row is successfully cancelled, Response is empty. 960 998 961 ### 1 2.8 Credit order rows999 ### 13.8 Credit order rows 962 1000 Creates a new credit on the specified delivery with specified order rows. Assuming the delivery has action **CanCreditOrderRows** and the specified order rows also has action **CanCreditRow** 963 1001 … … 977 1015 On the returned URL can be checked status of the task. 978 1016 979 ### 1 2.8.1 Row Crediting Options1017 ### 13.8.1 Row Crediting Options 980 1018 981 1019 | Parameter | Type | Description | … … 984 1022 | quantity | int | Number of items to credit | 985 1023 986 ### 1 2.9 Credit new order row1024 ### 13.9 Credit new order row 987 1025 By specifying a new credit row, a new credit row will be created on the delivery, assuming the delivery has action **CanCreditNewRow**. 988 1026 … … 1001 1039 On the returned URL can be checked status of the task. 1002 1040 1003 ### 1 2.10 Credit order rows with fee1041 ### 13.10 Credit order rows with fee 1004 1042 Creates a new credit on the specified delivery with specified order rows. Assuming the delivery has action **CanCreditOrderRows** and the specified order rows also has action **CanCreditRow**. Adds the ability to add a fee to the credit. 1005 1043 … … 1019 1057 1020 1058 On the returned URL can be checked status of the task. 1021 ### 1 2.11 Credit amount1059 ### 13.11 Credit amount 1022 1060 By specifying a credited amount larger than the current credited amount. A credit is being made on the specified delivery. The credited amount cannot be lower than the current credited amount or larger than the delivered amount. 1023 1061 … … 1034 1072 If order amount is successfully credited, Response is empty. 1035 1073 1036 ### 1 2.12 Add order row1074 ### 13.12 Add order row 1037 1075 This method is used to add order rows to an order, assuming the order has the action **CanAddOrderRow**. 1038 1076 If the new order amount will exceed the current order amount, a credit check will be performed. … … 1052 1090 On the returned URL (HeaderLocation) can be checked status of the task. 1053 1091 1054 ### 1 2.13 Update order row1092 ### 13.13 Update order row 1055 1093 This method is used to update an order row, assuming the order has action "CanUpdateOrderRow" and the order row has the action **CanUpdateRow**. 1056 1094 The method will update all fields set in the payload, if a field is not set the row will keep the current value. … … 1067 1105 If order row is successfully updated, Response is empty. 1068 1106 1069 ### 1 2.14 Replace order rows1107 ### 13.14 Replace order rows 1070 1108 This method is used to update an order row, assuming the order has action "CanUpdateOrderRow". 1071 1109 This method will delete all the present rows and replace with the ones set in the payload. … … 1082 1120 1083 1121 1084 ### 1 2.15 Data objects1085 1086 #### 1 2.15.1 Order1122 ### 13.15 Data objects 1123 1124 #### 13.15.1 Order 1087 1125 | Parameter | Type | Description | 1088 1126 |-----------------------|---------------|-----------------------------------------------------------| … … 1095 1133 | PaymentType | string | The final payment method for the order. Will only have a value when the order is locked, otherwise null. See list of possible PaymentType below.| 1096 1134 | CreationDate | DateTime | Date and time when the order was created| 1097 | NationalId | string | Personal- or organization number.|1098 | IsCompany | boolean | True if nationalid is organisationnumber, false if nationalid is personalnumber.|1135 | NationalId | string | Personal- or organization number.| 1136 | IsCompany | boolean | True if "nationalid" is organisation number, false if "nationalid" is personal number.| 1099 1137 | OrderAmount | int | The total amount on the order. Minor unit| 1100 1138 | CancelledAmount | int | The total cancelled amount on the order. Minor uit| … … 1105 1143 | Actions | List of String | A list of actions possible on the order.| 1106 1144 1107 #### 1 2.15.2 Delivery1145 #### 13.15.2 Delivery 1108 1146 1109 1147 | Parameter | Type | Description | … … 1118 1156 | Actions | List of string | A list of actions possible on the delivery.| 1119 1157 1120 #### 1 2.15.3 Credit1158 #### 13.15.3 Credit 1121 1159 1122 1160 | Parameter | Type | Description | … … 1126 1164 | Actions | List of String | A list of actions possible on the credit.| 1127 1165 1128 #### 1 2.15.4 Task1166 #### 13.15.4 Task 1129 1167 1130 1168 | Parameter | Type | Description | … … 1133 1171 | Status | String | Status of the task | 1134 1172 1135 #### 1 2.15.5 Order Row1173 #### 13.15.5 Order Row 1136 1174 1137 1175 |Parameter |R | RO | Type | Description | Limits| 1138 1176 |-----------------------|---|----|----------|-------------------------------|-------------------| 1139 1177 | OrderRowId | | * |int | Order row id from underlying system, unique on order. | Not possible to set through API, only get.| 1140 | ArticleNumber | | |string | Article number as a string, can contain letters and numbers. | Maximum 256 characters. |1178 | ArticleNumber | | |string | Article number as a string, can contain letters and numbers. | Maximum 256 characters. | 1141 1179 | Name | * | |string | Article name. | 1-40 characters. | 1142 1180 | Quantity | * | |int | Quantity of the product. | 1-9 digits. Minor unit.| 1143 1181 | UnitPrice | * | |int | Price of the product including VAT. | 1-13 digits, can be negative. Minor currency.| 1144 | DiscountPercent | | |int | The discount percent of the product. | 0-9900. Minor unit|1182 | DiscountPercent | | |int | The discount percent of the product. | 0-9900. Minor unit| 1145 1183 | VatPercent | * | |int | The VAT percentage of the current product. | Valid vat percentage for that country . Minor unit.0-10000| 1146 1184 | Unit | | |string | The unit type, e.g., “st”, “pc”, “kg” etc. | 0-4 characters. | … … 1148 1186 | Actions | | * |List of string | A list of actions possible on the order row. See list of OrderRow actions below. | Not possible to set through API, only get.| 1149 1187 1150 #### 1 2.15.6 Address1188 #### 13.15.6 Address 1151 1189 1152 1190 | Parameter | Type | Description | … … 1159 1197 | CountryCode | string | 2-letter ISO country code | 1160 1198 1161 #### 1 2.15.7 Order Status1199 #### 13.15.7 Order Status 1162 1200 1163 1201 | Parameter | Description | … … 1168 1206 | Failed | The payment for this order has failed | 1169 1207 1170 #### 1 2.15.8 Order actions1208 #### 13.15.8 Order actions 1171 1209 1172 1210 | Parameter | Description | … … 1180 1218 | CanUpdateOrderRow || 1181 1219 1182 #### 1 2.15.9 Delivery actions1220 #### 13.15.9 Delivery actions 1183 1221 1184 1222 | Parameter | Description | … … 1188 1226 | CanCreditAmount || 1189 1227 1190 #### 1 2.15.10 Order Row actions1228 #### 13.15.10 Order Row actions 1191 1229 1192 1230 | Parameter | Description | … … 1197 1235 | CanUpdateRow || 1198 1236 1199 ## 1 3. Javascript API1237 ## 14. Javascript API 1200 1238 1201 1239 (Please note that the API is still considered a work in progress and might see significant changes.) -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/sveaekonomi/checkout/VERSION
r3319942 r3327589 1 1. 5.21 1.6.0 -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/sveaekonomi/checkout/composer.json
r3319942 r3327589 1 1 { 2 2 "name": "sveaekonomi/checkout", 3 "version": "1. 5.3",3 "version": "1.6.0", 4 4 "description": "Php integration library for Svea Checkout", 5 5 "license": "Apache-2.0", … … 26 26 "phploc/phploc": "^2.0.1", 27 27 "sebastian/phpcpd": "^2.0.4", 28 "symfony/dependency-injection": "^2.7.51 || ^2.8.50 || ^3.4.26 || ^4.1.12 || ^4.2.7"28 "symfony/dependency-injection": "^2.7.51 || ^2.8.50 || ^3.4.26 || ^4.1.12 || ^4.2.7" 29 29 }, 30 30 "scripts": { -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/sveaekonomi/checkout/src/CheckoutClient.php
r3065202 r3327589 70 70 71 71 return $this->executeAction($class, $data); 72 } 73 74 /** 75 * Change payment method for existing Svea Checkout order. 76 * 77 * @param array $data 78 * @return mixed 79 */ 80 public function changePaymentMethod( array $data ) 81 { 82 return $this->executeAction(ImplementationFactory::returnChangePaymentMethodClass($this->connector), $data); 83 72 84 } 73 85 -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/sveaekonomi/checkout/src/Implementation/ImplementationFactory.php
r3065202 r3327589 5 5 use Svea\Checkout\Transport\Connector; 6 6 use Svea\Checkout\Validation\ValidateCreateOrderData; 7 use Svea\Checkout\Validation\ValidateChangePaymentMethodData; 7 8 use Svea\Checkout\Validation\ValidateCreateTokenOrderData; 8 9 use Svea\Checkout\Validation\ValidateGetOrderData; … … 17 18 /** 18 19 * @param Connector $connector 19 * @return ImplementationInterface20 * @return CreateOrder 20 21 */ 21 22 public static function returnCreateOrderClass(Connector $connector) … … 26 27 /** 27 28 * @param Connector $connector 28 * @return ImplementationInterface29 * @return CreateTokenOrder 29 30 */ 30 public static function returnCreateTokenOrderClass(Connector $connector) { 31 public static function returnCreateTokenOrderClass(Connector $connector) 32 { 31 33 return new CreateTokenOrder($connector, new ValidateCreateTokenOrderData()); 32 34 } … … 34 36 /** 35 37 * @param Connector $connector 36 * @return ImplementationInterface 38 * @return ChangePaymentMethod 39 */ 40 public static function returnChangePaymentMethodClass(Connector $connector) 41 { 42 return new ChangePaymentMethod($connector, new ValidateChangePaymentMethodData()); 43 } 44 45 /** 46 * @param Connector $connector 47 * @return GetOrder 37 48 */ 38 49 public static function returnGetOrderClass(Connector $connector) … … 43 54 /** 44 55 * @param Connector $connector 45 * @return ImplementationInterface56 * @return GetTokenOrder 46 57 */ 47 58 public static function returnGetTokenOrderClass(Connector $connector) … … 52 63 /** 53 64 * @param Connector $connector 54 * @return ImplementationInterface65 * @return GetToken 55 66 */ 56 67 public static function returnGetTokenClass(Connector $connector) … … 61 72 /** 62 73 * @param Connector $connector 63 * @return ImplementationInterface74 * @return UpdateToken 64 75 */ 65 76 public static function returnUpdateTokenClass(Connector $connector) … … 70 81 /** 71 82 * @param Connector $connector 72 * @return ImplementationInterface83 * @return UpdateOrder 73 84 */ 74 85 public static function returnUpdateOrderClass(Connector $connector) … … 79 90 /** 80 91 * @param Connector $connector 81 * @return ImplementationInterface92 * @return GetAvailablePartPaymentCampaigns 82 93 */ 83 94 public static function returnGetAvailablePartPaymentCampaignsClass(Connector $connector) -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/sveaekonomi/webpay/composer.json
r3319942 r3327589 1 1 { 2 2 "name": "sveaekonomi/webpay", 3 "version": "3.16. 0",3 "version": "3.16.1", 4 4 "description": "Php integration library for Svea payment methods", 5 5 "license": "Apache-2.0", -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/FixedDiscount.php
r3319942 r3327589 30 30 public $description; 31 31 32 /** 33 * @var float $amount 34 */ 35 public $amount; 36 32 37 /** 33 38 * @var float $amountIncVat … … 51 56 52 57 /** 53 * @var string $rowType - The type of row to be created.54 */ 55 public $rowType = 'Row';58 * @var string|null $rowType - The type of row to be created. 59 */ 60 public $rowType = null; 56 61 57 62 /** -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/InvoiceFee.php
r3319942 r3327589 51 51 52 52 /** 53 * @var string $rowType - Optional type of row name53 * @var string|null $rowType - Optional type of row name 54 54 */ 55 55 public $rowType = "InvoiceFee"; 56 57 /** 58 * @var string $name 59 */ 60 public $name; 56 61 57 62 /** -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/OrderRow.php
r3319942 r3327589 71 71 72 72 /** 73 * @var string $rowType - Optional type of row name74 */ 75 public $rowType = "Row";73 * @var string|null $rowType - Optional type of row name 74 */ 75 public $rowType = null; 76 76 77 77 /** -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/RelativeDiscount.php
r3319942 r3327589 34 34 35 35 /** 36 * @var string $rowType - Optional type of row name36 * @var string|null $rowType - Optional type of row name 37 37 */ 38 public $rowType = "Row";38 public $rowType = null; 39 39 40 40 /** -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/ShippingFee.php
r3319942 r3327589 62 62 63 63 /** 64 * @var string $rowType - Optional type of row name65 */ 66 public $rowType = "Row";64 * @var string|null $rowType - Optional type of row name 65 */ 66 public $rowType = null; 67 67 68 68 /** -
svea-webpay-for-woocommerce/tags/4.0.2/vendor/sveaekonomi/webpay/version.json
r3319942 r3327589 1 1 { 2 "version": "3.16. 0"2 "version": "3.16.1" 3 3 } -
svea-webpay-for-woocommerce/trunk/inc/Scripts.php
r3319942 r3327589 128 128 ]; 129 129 130 $svea_data['isPayPage'] = is_checkout () ? true : false;130 $svea_data['isPayPage'] = is_checkout_pay_page() ? true : false; 131 131 132 132 if ( is_checkout_pay_page() ) { -
svea-webpay-for-woocommerce/trunk/readme.txt
r3324086 r3327589 10 10 License: Apache 2.0 11 11 License URI: https://www.apache.org/licenses/LICENSE-2.0 12 Stable tag: 4.0. 112 Stable tag: 4.0.2 13 13 14 14 The Svea Stand Alone payment module is a complete solution for shops using WordPress / WooCommerce as an e-commerce platform. … … 39 39 == Upgrade Notice == 40 40 41 = 4.0.2 = 42 4.0.2 is a patch release. 43 41 44 = 4.0.1 = 42 45 4.0.1 is a patch release. … … 54 57 55 58 == Changelog == 59 60 = 4.0.2 2025-07-09 = 61 * Correct pay page logic, fixing issues with get address. 56 62 57 63 = 4.0.1 2025-07-08 = -
svea-webpay-for-woocommerce/trunk/svea-webpay-for-woocommerce.php
r3324086 r3327589 4 4 * Plugin Name: Svea Stand Alone for WooCommerce 5 5 * Description: Supercharge your WooCommerce Store with powerful features to pay via Svea Credit card, Invoice, Part Payment, Trustly, Swish, MobilePay and Vipps. 6 * Version: 4.0. 16 * Version: 4.0.2 7 7 * Author: The Generation 8 8 * Author URI: https://thegeneration.se/ … … 37 37 * @var string 38 38 */ 39 const VERSION = '4.0. 1';39 const VERSION = '4.0.2'; 40 40 41 41 /** -
svea-webpay-for-woocommerce/trunk/vendor/autoload.php
r3319942 r3327589 20 20 require_once __DIR__ . '/composer/autoload_real.php'; 21 21 22 return ComposerAutoloaderInit 33686362a7e49595b5bc1ca0cfcfc4ae::getLoader();22 return ComposerAutoloaderInitbc30d1434a3a88a158b0c9e929d8f6f0::getLoader(); -
svea-webpay-for-woocommerce/trunk/vendor/composer/autoload_classmap.php
r3319942 r3327589 28 28 'Svea\\Checkout\\Implementation\\Admin\\ReplaceOrderRows' => $vendorDir . '/sveaekonomi/checkout/src/Implementation/Admin/ReplaceOrderRows.php', 29 29 'Svea\\Checkout\\Implementation\\Admin\\UpdateOrderRow' => $vendorDir . '/sveaekonomi/checkout/src/Implementation/Admin/UpdateOrderRow.php', 30 'Svea\\Checkout\\Implementation\\ChangePaymentMethod' => $vendorDir . '/sveaekonomi/checkout/src/Implementation/ChangePaymentMethod.php', 30 31 'Svea\\Checkout\\Implementation\\CreateOrder' => $vendorDir . '/sveaekonomi/checkout/src/Implementation/CreateOrder.php', 31 32 'Svea\\Checkout\\Implementation\\CreateTokenOrder' => $vendorDir . '/sveaekonomi/checkout/src/Implementation/CreateTokenOrder.php', … … 59 60 'Svea\\Checkout\\Validation\\Admin\\ValidateReplaceOrderRowsData' => $vendorDir . '/sveaekonomi/checkout/src/Validation/Admin/ValidateReplaceOrderRowsData.php', 60 61 'Svea\\Checkout\\Validation\\Admin\\ValidateUpdateOrderRowData' => $vendorDir . '/sveaekonomi/checkout/src/Validation/Admin/ValidateUpdateOrderRowData.php', 62 'Svea\\Checkout\\Validation\\ValidateChangePaymentMethodData' => $vendorDir . '/sveaekonomi/checkout/src/Validation/ValidateChangePaymentMethodData.php', 61 63 'Svea\\Checkout\\Validation\\ValidateCreateOrderData' => $vendorDir . '/sveaekonomi/checkout/src/Validation/ValidateCreateOrderData.php', 62 64 'Svea\\Checkout\\Validation\\ValidateCreateTokenOrderData' => $vendorDir . '/sveaekonomi/checkout/src/Validation/ValidateCreateTokenOrderData.php', -
svea-webpay-for-woocommerce/trunk/vendor/composer/autoload_real.php
r3319942 r3327589 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 33686362a7e49595b5bc1ca0cfcfc4ae5 class ComposerAutoloaderInitbc30d1434a3a88a158b0c9e929d8f6f0 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 33686362a7e49595b5bc1ca0cfcfc4ae', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitbc30d1434a3a88a158b0c9e929d8f6f0', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 33686362a7e49595b5bc1ca0cfcfc4ae', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitbc30d1434a3a88a158b0c9e929d8f6f0', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 33686362a7e49595b5bc1ca0cfcfc4ae::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitbc30d1434a3a88a158b0c9e929d8f6f0::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
svea-webpay-for-woocommerce/trunk/vendor/composer/autoload_static.php
r3319942 r3327589 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 33686362a7e49595b5bc1ca0cfcfc4ae7 class ComposerStaticInitbc30d1434a3a88a158b0c9e929d8f6f0 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 53 53 'Svea\\Checkout\\Implementation\\Admin\\ReplaceOrderRows' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Implementation/Admin/ReplaceOrderRows.php', 54 54 'Svea\\Checkout\\Implementation\\Admin\\UpdateOrderRow' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Implementation/Admin/UpdateOrderRow.php', 55 'Svea\\Checkout\\Implementation\\ChangePaymentMethod' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Implementation/ChangePaymentMethod.php', 55 56 'Svea\\Checkout\\Implementation\\CreateOrder' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Implementation/CreateOrder.php', 56 57 'Svea\\Checkout\\Implementation\\CreateTokenOrder' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Implementation/CreateTokenOrder.php', … … 84 85 'Svea\\Checkout\\Validation\\Admin\\ValidateReplaceOrderRowsData' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Validation/Admin/ValidateReplaceOrderRowsData.php', 85 86 'Svea\\Checkout\\Validation\\Admin\\ValidateUpdateOrderRowData' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Validation/Admin/ValidateUpdateOrderRowData.php', 87 'Svea\\Checkout\\Validation\\ValidateChangePaymentMethodData' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Validation/ValidateChangePaymentMethodData.php', 86 88 'Svea\\Checkout\\Validation\\ValidateCreateOrderData' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Validation/ValidateCreateOrderData.php', 87 89 'Svea\\Checkout\\Validation\\ValidateCreateTokenOrderData' => __DIR__ . '/..' . '/sveaekonomi/checkout/src/Validation/ValidateCreateTokenOrderData.php', … … 342 344 { 343 345 return \Closure::bind(function () use ($loader) { 344 $loader->prefixLengthsPsr4 = ComposerStaticInit 33686362a7e49595b5bc1ca0cfcfc4ae::$prefixLengthsPsr4;345 $loader->prefixDirsPsr4 = ComposerStaticInit 33686362a7e49595b5bc1ca0cfcfc4ae::$prefixDirsPsr4;346 $loader->classMap = ComposerStaticInit 33686362a7e49595b5bc1ca0cfcfc4ae::$classMap;346 $loader->prefixLengthsPsr4 = ComposerStaticInitbc30d1434a3a88a158b0c9e929d8f6f0::$prefixLengthsPsr4; 347 $loader->prefixDirsPsr4 = ComposerStaticInitbc30d1434a3a88a158b0c9e929d8f6f0::$prefixDirsPsr4; 348 $loader->classMap = ComposerStaticInitbc30d1434a3a88a158b0c9e929d8f6f0::$classMap; 347 349 348 350 }, null, ClassLoader::class); -
svea-webpay-for-woocommerce/trunk/vendor/composer/installed.json
r3319942 r3327589 3 3 { 4 4 "name": "sveaekonomi/checkout", 5 "version": "1. 5.3",6 "version_normalized": "1. 5.3.0",5 "version": "1.6.0", 6 "version_normalized": "1.6.0.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/sveawebpay/php-checkout.git", 10 "reference": " 6241c3f894322775a8d574843f56bf1e2df884c1"10 "reference": "d184c949b60b96595cb786320bf049a5fbaf91df" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://api.github.com/repos/sveawebpay/php-checkout/zipball/ 6241c3f894322775a8d574843f56bf1e2df884c1",15 "reference": " 6241c3f894322775a8d574843f56bf1e2df884c1",14 "url": "https://api.github.com/repos/sveawebpay/php-checkout/zipball/d184c949b60b96595cb786320bf049a5fbaf91df", 15 "reference": "d184c949b60b96595cb786320bf049a5fbaf91df", 16 16 "shasum": "" 17 17 }, … … 29 29 "symfony/dependency-injection": "^2.7.51 || ^2.8.50 || ^3.4.26 || ^4.1.12 || ^4.2.7" 30 30 }, 31 "time": "202 4-11-13T10:20:09+00:00",31 "time": "2025-06-30T13:03:15+00:00", 32 32 "type": "library", 33 33 "installation-source": "dist", … … 50 50 "support": { 51 51 "issues": "https://github.com/sveawebpay/php-checkout/issues", 52 "source": "https://github.com/sveawebpay/php-checkout/tree/1. 5.3"52 "source": "https://github.com/sveawebpay/php-checkout/tree/1.6.0" 53 53 }, 54 54 "install-path": "../sveaekonomi/checkout" … … 56 56 { 57 57 "name": "sveaekonomi/webpay", 58 "version": "3.16. 0",59 "version_normalized": "3.16. 0.0",58 "version": "3.16.1", 59 "version_normalized": "3.16.1.0", 60 60 "source": { 61 61 "type": "git", 62 62 "url": "https://github.com/sveawebpay/php-integration.git", 63 "reference": " deda4e94e2558d8de02887425e8dc5fa241376b7"63 "reference": "277dccf36e9bc7c82530cdf8d3572ec5c2e98810" 64 64 }, 65 65 "dist": { 66 66 "type": "zip", 67 "url": "https://api.github.com/repos/sveawebpay/php-integration/zipball/ deda4e94e2558d8de02887425e8dc5fa241376b7",68 "reference": " deda4e94e2558d8de02887425e8dc5fa241376b7",67 "url": "https://api.github.com/repos/sveawebpay/php-integration/zipball/277dccf36e9bc7c82530cdf8d3572ec5c2e98810", 68 "reference": "277dccf36e9bc7c82530cdf8d3572ec5c2e98810", 69 69 "shasum": "" 70 70 }, … … 78 78 "phpunit/phpunit": "^8" 79 79 }, 80 "time": "2025-0 6-26T08:40:15+00:00",80 "time": "2025-07-14T14:44:38+00:00", 81 81 "type": "library", 82 82 "installation-source": "dist", … … 99 99 "support": { 100 100 "issues": "https://github.com/sveawebpay/php-integration/issues", 101 "source": "https://github.com/sveawebpay/php-integration/tree/3.16. 0"101 "source": "https://github.com/sveawebpay/php-integration/tree/3.16.1" 102 102 }, 103 103 "install-path": "../sveaekonomi/webpay" -
svea-webpay-for-woocommerce/trunk/vendor/composer/installed.php
r3319942 r3327589 12 12 'versions' => array( 13 13 'sveaekonomi/checkout' => array( 14 'pretty_version' => '1. 5.3',15 'version' => '1. 5.3.0',16 'reference' => ' 6241c3f894322775a8d574843f56bf1e2df884c1',14 'pretty_version' => '1.6.0', 15 'version' => '1.6.0.0', 16 'reference' => 'd184c949b60b96595cb786320bf049a5fbaf91df', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../sveaekonomi/checkout', … … 21 21 ), 22 22 'sveaekonomi/webpay' => array( 23 'pretty_version' => '3.16. 0',24 'version' => '3.16. 0.0',25 'reference' => ' deda4e94e2558d8de02887425e8dc5fa241376b7',23 'pretty_version' => '3.16.1', 24 'version' => '3.16.1.0', 25 'reference' => '277dccf36e9bc7c82530cdf8d3572ec5c2e98810', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../sveaekonomi/webpay', -
svea-webpay-for-woocommerce/trunk/vendor/composer/platform_check.php
r2981521 r3327589 20 20 } 21 21 } 22 trigger_error( 23 'Composer detected issues in your platform: ' . implode(' ', $issues), 24 E_USER_ERROR 22 throw new \RuntimeException( 23 'Composer detected issues in your platform: ' . implode(' ', $issues) 25 24 ); 26 25 } -
svea-webpay-for-woocommerce/trunk/vendor/sveaekonomi/checkout/README.md
r3065202 r3327589 9 9 * [6. Create recurring order](#6-create-recurring-order) 10 10 * [7. Get recurring order](#7-get-recurring-order) 11 * [8. Response](#8-response) 12 * [9. Additional requests](#9-additional-requests) 13 * [10. Data structures](#10-data-structures) 14 * [11. HttpStatusCodes](#11-httpstatuscodes) 15 * [12. Order administration](#12-order-administration) 16 * [13. Javascript API](#13-javascript-api) 11 * [8. Change payment method for recurring order](#8-change-payment-method-for-recurring-order) 12 * [9. Response](#9-response) 13 * [10. Additional requests](#10-additional-requests) 14 * [11. Data structures](#11-data-structures) 15 * [12. HttpStatusCodes](#12-httpstatuscodes) 16 * [13. Order administration](#13-order-administration) 17 * [14. Javascript API](#14-javascript-api) 17 18 ## Introduction 18 19 The checkout offers a complete solution with a variety of payment methods. The payment methods that are currently available in the checkout are invoice, payment plan, account credit, card payments and payment by bank. 19 20 20 21 21 The checkout supports both B2C and B2B payments, fast customer identification and caches customers behavio ur.22 The checkout supports both B2C and B2B payments, fast customer identification and caches customers behavior. 22 23 23 24 … … 135 136 | IdentityFlags | | Array of [*IdentityFlags*](#1012-identityflags) | Array of [*IdentityFlags*](#812-identityflags) used to hide certain features of the iframe | 136 137 | PartnerKey | | Guid | Optional, provided by Svea on request. Used to create statistics. | 137 | Recurring | | Boolean | Optional, if set to true the order will be a recurring order. (Only av ilable if the merchant account has this feature enabled) |138 | Recurring | | Boolean | Optional, if set to true the order will be a recurring order. (Only available if the merchant account has this feature enabled) | 138 139 | MerchantData | | String | Metadata visible in the checkout API, returned when the order is fetched through the API. | 139 140 … … 375 376 ``` 376 377 377 ### 8. Response 378 ### 8. Change payment method for recurring order 379 Svea Checkout allows you to let customers change the payment method for an existing recurring order. 380 This feature is useful if a customer's card expires. 381 382 #### Prerequisites 383 - The recurring order must be created and active. 384 - You need a "token" associated with the subscription. 385 386 #### How it works 387 You use the changePaymentMethod endpoint via the \Svea\Checkout\CheckoutClient. 388 This will generate a new checkout session where the customer can select a new payment method. 389 Once the customer completes the flow, the new payment method will be linked to the recurring order. 390 391 #### Example 392 ```php 393 // include the library 394 include 'vendor/autoload.php'; 395 396 // without composer 397 require_once 'include.php'; 398 399 $checkoutClient = new \Svea\Checkout\CheckoutClient($connector); 400 401 $data = [ 402 'token' => '12345678-90ab-cdef-1234-567890abcdef', 403 'termsUrl' => 'http://yourdomain.se/terms' 404 ]; 405 406 $response = $checkoutClient->changePaymentMethod($data); 407 408 // Show the customer this snippet that lets them select a new payment method. 409 $sveaCheckoutIframe = $response['Gui']['Snippet'] ?? null; 410 echo $sveaCheckoutIframe ?: ''; 411 ``` 412 413 After the customer has completed the payment method change, Svea will update the payment details on the current token. No change needed from your side. 414 415 ### 9. Response 378 416 The response contains information about the order such as Cart, Status, PaymentType and much more. 379 417 … … 542 580 echo $response['Gui']['Snippet'] 543 581 ``` 544 ### 9. Additional requests545 546 #### 9.1 GetAvailablePartPaymentCampaigns582 ### 10. Additional requests 583 584 #### 10.1 GetAvailablePartPaymentCampaigns 547 585 548 586 GetAvailablePartPaymentCampaigns can be used to fetch the details of all the campaigns that are available on the merchant … … 635 673 If you are a finnish merchant you have to display ALL the values described [here](https://www.kkv.fi/sv/beslut-och-publikationer/publikationer/konsumentrombudsmannens-riktlinjer/enligt-substans/tillhandahallande-av-konsumentkrediter/#luottolinjausSVE5.1) to be compliant with finnish laws. 636 674 637 ### 1 0. Data structures638 639 #### 1 0.1 MerchantSettings675 ### 11. Data structures 676 677 #### 11.1 MerchantSettings 640 678 641 679 | Parameters | Required | Type | Description | Limits | 642 680 |------------------------------|-----------|-----------|--------------|---------| 643 | TermsUri | * | string | URI to a page which contains terms of the web shop. | 1-500 characters, must be a valid Url |644 | CheckoutUri | * | string | URI to the page in the web shop that loads the Checkout. | 1-500 characters, must be a valid Url |645 | ConfirmationUri | * | string | URI to the page in the web shop displaying specific information to a customer after the order has been confirmed. | 1-500 characters, must be a valid Url |681 | TermsUri | * | string | URI to a page which contains terms of the web shop. | 1-500 characters, must be a valid Url | 682 | CheckoutUri | * | string | URI to the page in the web shop that loads the Checkout. | 1-500 characters, must be a valid Url | 683 | ConfirmationUri | * | string | URI to the page in the web shop displaying specific information to a customer after the order has been confirmed. | 1-500 characters, must be a valid Url | 646 684 | PushUri | * | string | URI to a location that is expecting callbacks when CheckoutOrderStatus is changed. Uri should use the {checkout.order.uri} placeholder. | 1-500 characters, must be a valid Url | 647 685 | CheckoutValidationCallBackUri| | string | An optional URl to a location that is expecting callbacks from the Checkout to validate order’s stock status, and also the possibility to update checkout with an updated ClientOrderNumber. Uri may have a {checkout.order.uri} placeholder which will be replaced with the CheckoutOrderId. Please refer below [*CheckoutValidationCallbackResponse*](#1013-checkoutvalidationcallbackresponse) to see the expected response. | 1-500 characters, must be a valid Url | … … 649 687 | PromotedPartPaymentCampaign | | integer | Valid CampaignID. If used then the chosen campaign will be shown as the first payment method in all payment method lists. | Must be valid CampaignID | 650 688 651 #### 1 0.2 Items689 #### 11.2 Items 652 690 653 691 | Parameters | Required | Type | Description | … … 655 693 | Items | * | List of [*OrderRows*](#103-orderrow) | See structure below | 656 694 657 #### 1 0.3 OrderRow695 #### 11.3 OrderRow 658 696 659 697 | Parameters | Required | Type | Description | Limits | 660 698 |------------------------------|------------|-----------|--------------|---------| 661 | ArticleNumber | | String | Article number as a string, can contain letters and numbers. | Maximum 1000 characters |699 | ArticleNumber | | String | Article number as a string, can contain letters and numbers. | Maximum 1000 characters | 662 700 | Name | * | String | Article name | 1-40 characters | 663 701 | Quantity | * | Integer | Set as basis point (1/100) e.g 2 = 200 | 1-9 digits. Minor currency | 664 702 | UnitPrice | * | Integer | Set as basis point (1/100) e.g. 25.00 = 2500 | 1-13 digits, can be negative. Minor currency | 665 | DiscountPercent | | Integer | The discount percent of the product. | 0-100 |703 | DiscountPercent | | Integer | The discount percent of the product. | 0-100 | 666 704 | VatPercent | * | Integer | The VAT percentage of the current product. | Valid vat percentage for that country. Minor currency. | 667 705 | Unit | | String | The unit type, e.g., “st”, “pc”, “kg” etc. | 0-4 characters| 668 | TemporaryReference | | String | Can be used when creating or updating an order. The returned rows will have their corresponding temporaryreferenceas they were given in the indata. It will not be stored and will not be returned in GetOrder. | |706 | TemporaryReference | | String | Can be used when creating or updating an order. The returned rows will have their corresponding "temporaryreference" as they were given in the indata. It will not be stored and will not be returned in GetOrder. | | 669 707 | MerchantData | | String | Can be used to store data, the data is not displayed anywhere but in the API 670 708 671 #### 1 0.4 PresetValue709 #### 11.4 PresetValue 672 710 673 711 | Parameters | Required | Type | Description | … … 685 723 | PhoneNumber | String | | 1-18 digits, can include “+”, “-“s and space | 686 724 | PostalCode | String | | Company specific validation | 687 | IsCompany | Boolean | | Required if nationalidis set |688 689 #### 1 0.5 Gui725 | IsCompany | Boolean | | Required if "nationalid" is set | 726 727 #### 11.5 Gui 690 728 691 729 | Parameters | Type | Description | … … 694 732 | Snippet | String | HTML-snippet including javascript to populate the iFrame. | 695 733 696 #### 1 0.6 Customer734 #### 11.6 Customer 697 735 698 736 | Parameters | Type | Description | 699 737 |------------------------------|-----------|--------------| 700 | NationalId | String | Personal- or organization number. |701 | IsCompany | Boolean | True if nationalId is organisation number, false if nationalid is personalnumber. |738 | NationalId | String | Personal- or organization number. | 739 | IsCompany | Boolean | True if nationalId is organisation number, false if "nationalid" is personal number. | 702 740 | CountryCode | String | Defined by two-letter ISO 3166-1 alpha-2, i.e. SE, DE, FI etc.| 703 741 | Id | Integer | Customer-specific id | 704 742 705 #### 1 0.7 Address743 #### 11.7 Address 706 744 707 745 | Parameters | Type | Description | … … 718 756 | AddressLines | Array of strings | Null unless international flow is used 719 757 720 #### 1 0.8 CheckoutOrderStatus758 #### 11.8 CheckoutOrderStatus 721 759 722 760 The order can only be considered “ready to send to customer” when the CheckoutOrderStatus is Final. No other status can guarantee payment. … … 728 766 | Final | The order is completed in the checkout and managed by WebPay’s subsystems. The order can now be administrated using either the library or browsing to the admin user interface| 729 767 730 #### 1 0.9 Locale768 #### 11.9 Locale 731 769 | Parameter | Description | 732 770 |-----------|-----------------| … … 739 777 740 778 741 #### 1 0.10 PaymentType779 #### 11.10 PaymentType 742 780 | Parameter | Description | 743 781 |-------------|-----------------| … … 755 793 | LEASINGUNAPPROVED | Leasing (Manual approve process by Sveas leasing department, check Store pay admin page) | 756 794 | LEASINGAPPROVED | Leasing (Automatically approved leasing contract) 757 | TRUSTLY | The customer pai ed with Trustly |795 | TRUSTLY | The customer paid with Trustly | 758 796 | Directbank (varies) | The customer paid the order with direct bank e.g. Nordea, SEB. See below for all available parameters | 759 797 … … 778 816 779 817 780 #### 1 0.11 CampaignCodeInfo818 #### 11.11 CampaignCodeInfo 781 819 | Parameter | Type | Description | 782 820 |---------------------------|-----------|-------------| … … 794 832 | PaymentPlanType | Integer | Type of campaign | 795 833 796 #### 1 0.12 IdentityFlags834 #### 11.12 IdentityFlags 797 835 | Parameter | Type | Description | 798 836 |---------------------------|-----------|-------------| … … 801 839 | HideAnonymous | Boolean | Hides anonymous flow, forcing users to identify with their nationalId to perform a purchase | 802 840 803 #### 1 0.13 CheckoutValidationCallbackResponse841 #### 11.13 CheckoutValidationCallbackResponse 804 842 If a CheckoutValidationCallbackUri is set on an order when it's created, Svea will send a HTTP GET request to the specified URI when a customer clicks on "Confirm Order". 805 843 … … 811 849 | ClientOrderNumber | | String | Max 32 characters. Set if you want the ClientOrderNumber to be updated. | 812 850 813 ### 1 1. HttpStatusCodes851 ### 12. HttpStatusCodes 814 852 | Parameter | Type | Description | 815 853 |-----------|---------------|-------------| … … 827 865 If the returned ResultCode is not present in the above tables please contact Svea Ekonomi for further information. 828 866 829 ## 1 2. Order administration867 ## 13. Order administration 830 868 831 869 [See full examples](examples/admin) … … 843 881 \Exception - For any other error 844 882 845 ### 1 2.1 Get order883 ### 13.1 Get order 846 884 This method is used to get the entire order with all its relevant information. Including its deliveries, rows, credits and addresses. 847 885 … … 856 894 | Parameters OUT | Type | Description | 857 895 |-------------------------------|-----------|--------------| 858 | Order | array | An array containing all the order details. See [1 2.14 Data objects](#1215-data-objects) |859 860 861 862 ### 1 2.2 Get task896 | Order | array | An array containing all the order details. See [13.14 Data objects](#1215-data-objects) | 897 898 899 900 ### 13.2 Get task 863 901 A task will explain the status of a previously performed operation. When finished it will point towards the new resource with the Location. 864 902 #### Parameters … … 874 912 | Task | [Task](#12154-task) | An object containing details regarding a queued task | 875 913 876 ### 1 2.3 Deliver order914 ### 13.3 Deliver order 877 915 Creates a delivery on a checkout order. Assuming the order got the **CanDeliverOrder** action. 878 916 … … 894 932 | HeaderLocation | string | URI to the created task. (Absolute URL) | 895 933 896 ### 1 2.3.1 Row Delivery Options934 ### 13.3.1 Row Delivery Options 897 935 898 936 | Parameter | Type | Description | … … 901 939 | quantity | int | Number of items to credit | 902 940 903 ### 1 2.4 Deliver order with lower amount941 ### 13.4 Deliver order with lower amount 904 942 Creates a delivery on a checkout order with a lower amount than the total, canceling the remaining amount. Assuming the order got **CanDeliverOrder** and **CanCancelAmount** action. 905 943 … … 918 956 | HeaderLocation | string | URI to the created task (Absolute URL) | 919 957 920 ### 1 2.5 Cancel Order958 ### 13.5 Cancel Order 921 959 Cancel an order before it has been delivered. Assuming the order has the action **CanCancelOrder**. 922 960 … … 930 968 If the order is successfully cancelled, Response is empty. 931 969 932 ### 1 2.6 Cancel order amount970 ### 13.6 Cancel order amount 933 971 By specifying a higher amount than the current order cancelled amount then the order cancelled amount will increase, 934 972 assuming the order has the action **CanCancelOrderAmount**. The delta between the new *CancelledAmount* and the former *CancelledAmount* will be cancelled. … … 946 984 If order amount is successfully cancelled, Response is empty. 947 985 948 ### 1 2.7 Cancel order row986 ### 13.7 Cancel order row 949 987 Changes the status of an order row to *Cancelled*, assuming the order has the action **CanCancelOrderRow** and the OrderRow has the action **CanCancelRow**. 950 988 … … 959 997 If order row is successfully cancelled, Response is empty. 960 998 961 ### 1 2.8 Credit order rows999 ### 13.8 Credit order rows 962 1000 Creates a new credit on the specified delivery with specified order rows. Assuming the delivery has action **CanCreditOrderRows** and the specified order rows also has action **CanCreditRow** 963 1001 … … 977 1015 On the returned URL can be checked status of the task. 978 1016 979 ### 1 2.8.1 Row Crediting Options1017 ### 13.8.1 Row Crediting Options 980 1018 981 1019 | Parameter | Type | Description | … … 984 1022 | quantity | int | Number of items to credit | 985 1023 986 ### 1 2.9 Credit new order row1024 ### 13.9 Credit new order row 987 1025 By specifying a new credit row, a new credit row will be created on the delivery, assuming the delivery has action **CanCreditNewRow**. 988 1026 … … 1001 1039 On the returned URL can be checked status of the task. 1002 1040 1003 ### 1 2.10 Credit order rows with fee1041 ### 13.10 Credit order rows with fee 1004 1042 Creates a new credit on the specified delivery with specified order rows. Assuming the delivery has action **CanCreditOrderRows** and the specified order rows also has action **CanCreditRow**. Adds the ability to add a fee to the credit. 1005 1043 … … 1019 1057 1020 1058 On the returned URL can be checked status of the task. 1021 ### 1 2.11 Credit amount1059 ### 13.11 Credit amount 1022 1060 By specifying a credited amount larger than the current credited amount. A credit is being made on the specified delivery. The credited amount cannot be lower than the current credited amount or larger than the delivered amount. 1023 1061 … … 1034 1072 If order amount is successfully credited, Response is empty. 1035 1073 1036 ### 1 2.12 Add order row1074 ### 13.12 Add order row 1037 1075 This method is used to add order rows to an order, assuming the order has the action **CanAddOrderRow**. 1038 1076 If the new order amount will exceed the current order amount, a credit check will be performed. … … 1052 1090 On the returned URL (HeaderLocation) can be checked status of the task. 1053 1091 1054 ### 1 2.13 Update order row1092 ### 13.13 Update order row 1055 1093 This method is used to update an order row, assuming the order has action "CanUpdateOrderRow" and the order row has the action **CanUpdateRow**. 1056 1094 The method will update all fields set in the payload, if a field is not set the row will keep the current value. … … 1067 1105 If order row is successfully updated, Response is empty. 1068 1106 1069 ### 1 2.14 Replace order rows1107 ### 13.14 Replace order rows 1070 1108 This method is used to update an order row, assuming the order has action "CanUpdateOrderRow". 1071 1109 This method will delete all the present rows and replace with the ones set in the payload. … … 1082 1120 1083 1121 1084 ### 1 2.15 Data objects1085 1086 #### 1 2.15.1 Order1122 ### 13.15 Data objects 1123 1124 #### 13.15.1 Order 1087 1125 | Parameter | Type | Description | 1088 1126 |-----------------------|---------------|-----------------------------------------------------------| … … 1095 1133 | PaymentType | string | The final payment method for the order. Will only have a value when the order is locked, otherwise null. See list of possible PaymentType below.| 1096 1134 | CreationDate | DateTime | Date and time when the order was created| 1097 | NationalId | string | Personal- or organization number.|1098 | IsCompany | boolean | True if nationalid is organisationnumber, false if nationalid is personalnumber.|1135 | NationalId | string | Personal- or organization number.| 1136 | IsCompany | boolean | True if "nationalid" is organisation number, false if "nationalid" is personal number.| 1099 1137 | OrderAmount | int | The total amount on the order. Minor unit| 1100 1138 | CancelledAmount | int | The total cancelled amount on the order. Minor uit| … … 1105 1143 | Actions | List of String | A list of actions possible on the order.| 1106 1144 1107 #### 1 2.15.2 Delivery1145 #### 13.15.2 Delivery 1108 1146 1109 1147 | Parameter | Type | Description | … … 1118 1156 | Actions | List of string | A list of actions possible on the delivery.| 1119 1157 1120 #### 1 2.15.3 Credit1158 #### 13.15.3 Credit 1121 1159 1122 1160 | Parameter | Type | Description | … … 1126 1164 | Actions | List of String | A list of actions possible on the credit.| 1127 1165 1128 #### 1 2.15.4 Task1166 #### 13.15.4 Task 1129 1167 1130 1168 | Parameter | Type | Description | … … 1133 1171 | Status | String | Status of the task | 1134 1172 1135 #### 1 2.15.5 Order Row1173 #### 13.15.5 Order Row 1136 1174 1137 1175 |Parameter |R | RO | Type | Description | Limits| 1138 1176 |-----------------------|---|----|----------|-------------------------------|-------------------| 1139 1177 | OrderRowId | | * |int | Order row id from underlying system, unique on order. | Not possible to set through API, only get.| 1140 | ArticleNumber | | |string | Article number as a string, can contain letters and numbers. | Maximum 256 characters. |1178 | ArticleNumber | | |string | Article number as a string, can contain letters and numbers. | Maximum 256 characters. | 1141 1179 | Name | * | |string | Article name. | 1-40 characters. | 1142 1180 | Quantity | * | |int | Quantity of the product. | 1-9 digits. Minor unit.| 1143 1181 | UnitPrice | * | |int | Price of the product including VAT. | 1-13 digits, can be negative. Minor currency.| 1144 | DiscountPercent | | |int | The discount percent of the product. | 0-9900. Minor unit|1182 | DiscountPercent | | |int | The discount percent of the product. | 0-9900. Minor unit| 1145 1183 | VatPercent | * | |int | The VAT percentage of the current product. | Valid vat percentage for that country . Minor unit.0-10000| 1146 1184 | Unit | | |string | The unit type, e.g., “st”, “pc”, “kg” etc. | 0-4 characters. | … … 1148 1186 | Actions | | * |List of string | A list of actions possible on the order row. See list of OrderRow actions below. | Not possible to set through API, only get.| 1149 1187 1150 #### 1 2.15.6 Address1188 #### 13.15.6 Address 1151 1189 1152 1190 | Parameter | Type | Description | … … 1159 1197 | CountryCode | string | 2-letter ISO country code | 1160 1198 1161 #### 1 2.15.7 Order Status1199 #### 13.15.7 Order Status 1162 1200 1163 1201 | Parameter | Description | … … 1168 1206 | Failed | The payment for this order has failed | 1169 1207 1170 #### 1 2.15.8 Order actions1208 #### 13.15.8 Order actions 1171 1209 1172 1210 | Parameter | Description | … … 1180 1218 | CanUpdateOrderRow || 1181 1219 1182 #### 1 2.15.9 Delivery actions1220 #### 13.15.9 Delivery actions 1183 1221 1184 1222 | Parameter | Description | … … 1188 1226 | CanCreditAmount || 1189 1227 1190 #### 1 2.15.10 Order Row actions1228 #### 13.15.10 Order Row actions 1191 1229 1192 1230 | Parameter | Description | … … 1197 1235 | CanUpdateRow || 1198 1236 1199 ## 1 3. Javascript API1237 ## 14. Javascript API 1200 1238 1201 1239 (Please note that the API is still considered a work in progress and might see significant changes.) -
svea-webpay-for-woocommerce/trunk/vendor/sveaekonomi/checkout/VERSION
r3319942 r3327589 1 1. 5.21 1.6.0 -
svea-webpay-for-woocommerce/trunk/vendor/sveaekonomi/checkout/composer.json
r3319942 r3327589 1 1 { 2 2 "name": "sveaekonomi/checkout", 3 "version": "1. 5.3",3 "version": "1.6.0", 4 4 "description": "Php integration library for Svea Checkout", 5 5 "license": "Apache-2.0", … … 26 26 "phploc/phploc": "^2.0.1", 27 27 "sebastian/phpcpd": "^2.0.4", 28 "symfony/dependency-injection": "^2.7.51 || ^2.8.50 || ^3.4.26 || ^4.1.12 || ^4.2.7"28 "symfony/dependency-injection": "^2.7.51 || ^2.8.50 || ^3.4.26 || ^4.1.12 || ^4.2.7" 29 29 }, 30 30 "scripts": { -
svea-webpay-for-woocommerce/trunk/vendor/sveaekonomi/checkout/src/CheckoutClient.php
r3065202 r3327589 70 70 71 71 return $this->executeAction($class, $data); 72 } 73 74 /** 75 * Change payment method for existing Svea Checkout order. 76 * 77 * @param array $data 78 * @return mixed 79 */ 80 public function changePaymentMethod( array $data ) 81 { 82 return $this->executeAction(ImplementationFactory::returnChangePaymentMethodClass($this->connector), $data); 83 72 84 } 73 85 -
svea-webpay-for-woocommerce/trunk/vendor/sveaekonomi/checkout/src/Implementation/ImplementationFactory.php
r3065202 r3327589 5 5 use Svea\Checkout\Transport\Connector; 6 6 use Svea\Checkout\Validation\ValidateCreateOrderData; 7 use Svea\Checkout\Validation\ValidateChangePaymentMethodData; 7 8 use Svea\Checkout\Validation\ValidateCreateTokenOrderData; 8 9 use Svea\Checkout\Validation\ValidateGetOrderData; … … 17 18 /** 18 19 * @param Connector $connector 19 * @return ImplementationInterface20 * @return CreateOrder 20 21 */ 21 22 public static function returnCreateOrderClass(Connector $connector) … … 26 27 /** 27 28 * @param Connector $connector 28 * @return ImplementationInterface29 * @return CreateTokenOrder 29 30 */ 30 public static function returnCreateTokenOrderClass(Connector $connector) { 31 public static function returnCreateTokenOrderClass(Connector $connector) 32 { 31 33 return new CreateTokenOrder($connector, new ValidateCreateTokenOrderData()); 32 34 } … … 34 36 /** 35 37 * @param Connector $connector 36 * @return ImplementationInterface 38 * @return ChangePaymentMethod 39 */ 40 public static function returnChangePaymentMethodClass(Connector $connector) 41 { 42 return new ChangePaymentMethod($connector, new ValidateChangePaymentMethodData()); 43 } 44 45 /** 46 * @param Connector $connector 47 * @return GetOrder 37 48 */ 38 49 public static function returnGetOrderClass(Connector $connector) … … 43 54 /** 44 55 * @param Connector $connector 45 * @return ImplementationInterface56 * @return GetTokenOrder 46 57 */ 47 58 public static function returnGetTokenOrderClass(Connector $connector) … … 52 63 /** 53 64 * @param Connector $connector 54 * @return ImplementationInterface65 * @return GetToken 55 66 */ 56 67 public static function returnGetTokenClass(Connector $connector) … … 61 72 /** 62 73 * @param Connector $connector 63 * @return ImplementationInterface74 * @return UpdateToken 64 75 */ 65 76 public static function returnUpdateTokenClass(Connector $connector) … … 70 81 /** 71 82 * @param Connector $connector 72 * @return ImplementationInterface83 * @return UpdateOrder 73 84 */ 74 85 public static function returnUpdateOrderClass(Connector $connector) … … 79 90 /** 80 91 * @param Connector $connector 81 * @return ImplementationInterface92 * @return GetAvailablePartPaymentCampaigns 82 93 */ 83 94 public static function returnGetAvailablePartPaymentCampaignsClass(Connector $connector) -
svea-webpay-for-woocommerce/trunk/vendor/sveaekonomi/webpay/composer.json
r3319942 r3327589 1 1 { 2 2 "name": "sveaekonomi/webpay", 3 "version": "3.16. 0",3 "version": "3.16.1", 4 4 "description": "Php integration library for Svea payment methods", 5 5 "license": "Apache-2.0", -
svea-webpay-for-woocommerce/trunk/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/FixedDiscount.php
r3319942 r3327589 30 30 public $description; 31 31 32 /** 33 * @var float $amount 34 */ 35 public $amount; 36 32 37 /** 33 38 * @var float $amountIncVat … … 51 56 52 57 /** 53 * @var string $rowType - The type of row to be created.54 */ 55 public $rowType = 'Row';58 * @var string|null $rowType - The type of row to be created. 59 */ 60 public $rowType = null; 56 61 57 62 /** -
svea-webpay-for-woocommerce/trunk/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/InvoiceFee.php
r3319942 r3327589 51 51 52 52 /** 53 * @var string $rowType - Optional type of row name53 * @var string|null $rowType - Optional type of row name 54 54 */ 55 55 public $rowType = "InvoiceFee"; 56 57 /** 58 * @var string $name 59 */ 60 public $name; 56 61 57 62 /** -
svea-webpay-for-woocommerce/trunk/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/OrderRow.php
r3319942 r3327589 71 71 72 72 /** 73 * @var string $rowType - Optional type of row name74 */ 75 public $rowType = "Row";73 * @var string|null $rowType - Optional type of row name 74 */ 75 public $rowType = null; 76 76 77 77 /** -
svea-webpay-for-woocommerce/trunk/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/RelativeDiscount.php
r3319942 r3327589 34 34 35 35 /** 36 * @var string $rowType - Optional type of row name36 * @var string|null $rowType - Optional type of row name 37 37 */ 38 public $rowType = "Row";38 public $rowType = null; 39 39 40 40 /** -
svea-webpay-for-woocommerce/trunk/vendor/sveaekonomi/webpay/src/BuildOrder/RowBuilders/ShippingFee.php
r3319942 r3327589 62 62 63 63 /** 64 * @var string $rowType - Optional type of row name65 */ 66 public $rowType = "Row";64 * @var string|null $rowType - Optional type of row name 65 */ 66 public $rowType = null; 67 67 68 68 /** -
svea-webpay-for-woocommerce/trunk/vendor/sveaekonomi/webpay/version.json
r3319942 r3327589 1 1 { 2 "version": "3.16. 0"2 "version": "3.16.1" 3 3 }
Note: See TracChangeset
for help on using the changeset viewer.