Skip to content

Commit cf514f7

Browse files
authored
Merge pull request #62 from umbraco/v10/feature/emerchantpay-package-readme
Package readme & fix Approve bool parse
2 parents 08d3b31 + 3ff4554 commit cf514f7

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

src/Umbraco.Forms.Integrations.Commerce.EMerchantPay/PaymentProviderWorkflow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public override WorkflowExecutionStatus Execute(WorkflowExecutionContext context
156156
TransactionId = transactionId.ToString(),
157157
Usage = _paymentProviderSettings.Usage,
158158
NotificationUrl = $"{_paymentProviderSettings.UmbracoBaseUrl}umbraco/api/paymentprovider/notifypayment" +
159-
$"?formId={formId}&recordUniqueId={recordUniqueId}&statusFieldId={statusKey}&approve={bool.Parse(Approve)}",
159+
$"?formId={formId}&recordUniqueId={recordUniqueId}&statusFieldId={statusKey}&approve={(bool.TryParse(Approve, out bool approve) ? approve : false)}",
160160
ReturnSuccessUrl = _urlHelper.GetPageUrl(int.Parse(SuccessUrl)),
161161
ReturnFailureUrl = _urlHelper.GetPageUrl(int.Parse(FailureUrl)),
162162
ReturnCancelUrl = _urlHelper.GetPageUrl(int.Parse(CancelUrl)),

src/Umbraco.Forms.Integrations.Commerce.EMerchantPay/Umbraco.Forms.Integrations.Commerce.EMerchantPay.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
<PackageIconUrl></PackageIconUrl>
1212
<PackageProjectUrl>https://github.com/umbraco/Umbraco.Forms.Integrations/tree/main-v10/src/Umbraco.Forms.Integrations.Commerce.EMerchantPay</PackageProjectUrl>
1313
<RepositoryUrl>https://github.com/umbraco/Umbraco.Forms.Integrations</RepositoryUrl>
14-
<Version>2.0.1</Version>
14+
<Version>2.0.2</Version>
1515
<Authors>Umbraco HQ</Authors>
1616
<Company>Umbraco</Company>
1717
<PackageTags>Umbraco;Umbraco-Marketplace</PackageTags>
1818
<PackageIcon>emerchantpay.png</PackageIcon>
19+
<PackageReadmeFile>readme.md</PackageReadmeFile>
1920
</PropertyGroup>
2021

2122
<ItemGroup>
@@ -50,4 +51,8 @@
5051
</Content>
5152
</ItemGroup>
5253

54+
<ItemGroup>
55+
<None Include="readme.md" Pack="true" PackagePath="\"/>
56+
</ItemGroup>
57+
5358
</Project>

src/Umbraco.Forms.Integrations.Commerce.EMerchantPay/readme.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ Required minimum versions of Umbraco CMS:
1010

1111
## How To Use
1212

13+
To get started with _emerchantpay_ a merchant would need to be onboarded in order to get a merchant ID and obtain the keys
14+
required by the integration.
15+
16+
To begin the onboarding process an obtain the merchant account, you would need to fill out [this](https://www.emerchantpay.com/contact-us?utm_source__c=umbraco_referral&utm_medium__c=technical_blog&utm_campaign__c=Umbraco) form.
17+
Afterwards, a member of the _emerchantpay_ team will reach out to you.
18+
19+
### Customer journey map
20+
A merchant getting started with emerchantpay and Umbraco will need to make sure that they have an emerchantpay merchant account enabled and then cover these steps:
21+
22+
* Package Installation
23+
* Site Settings
24+
* Workflow Setup
25+
1326
### Authentication
1427

1528
All requests to emerchantpay API are authenticated by providing the merchant's username and password.

0 commit comments

Comments
 (0)