web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / PowerApps Portal Advan...
Power Pages
Unanswered

PowerApps Portal Advance Form Purchase Metadata

(0) ShareShare
ReportReport
Posted on by 41

Good Day. Thank you for you interest.

 

I am working on a integration with PowerApps Portal (D365 Sales CRM) with PayPal payment Gateway. The scope of the project is to be able to process payments on products inside D365 Sales and track Orders and Invoices. 


In Portal Management > Advanced Forms > Advanced Steps > Related > Metadata > There is an option of "Purchase". I was wondering if anyone had any information on this. Attached is a Screenshot of the features available for this metadata. Any information would help. 

 

Best Regards,
Arslan

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @arslanarif 

     

    I am not sure about that. You can take a look at the following article to set up a payment gateway

     

    https://link.medium.com/eaQBKpVydnb 

     

    Also, did you see the portal templates? You can utilise the customer portal. This will allow you to place the order. 

     

    https://docs.microsoft.com/en-us/powerapps/maker/portals/portal-templates

     

    Hope it helps.

    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

     

     

     

     

     

     

  • eugenevanstaden Profile Picture
    441 on at

    @arslanarif 

    If you have to authenticate with Payment gateway then suggest you implement a Companion App and the OAUTH grant flow from Portal.

    Your API will provide a PaymentRequest endpoint (for portal requests) and a PaymentResponse endpoint for the gateway's response.

    You can then process the payment result, save/submit your record from within the API and respond back to the portal.

    This way you handle the payment integration outside of portal - in the custom API.
    Use OAuth 2.0 implicit grant flow within your portal - Power Apps | Microsoft Docs

    and a sample of a Web App that implements the OAUTH.
    GitHub - eugenevanstaden/d365-portal-companion-api: Sample API demonstrating how to configure OAuth to authenticate against D365 portal

    This way you dont have to expose your payment gateway keys and config in the portal's javascript!

    For example, this code block in Javascript will leak your gateway key!

    eugenevanstaden_0-1643509528156.png

     




  • Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

    "Purchase" is a legacy item.  Microsoft bought the Portal code from AdxStudio, and Adx had integrated payments (that MSFT have not resurfaced after buying the code).  https://adx-community-eus.azurewebsites.net/products/adxstudio-portals/documentation/configuration-guide/web-forms/web-forms-metadata/

     

    The better way to write your own would be to use oAuth Explicit Grant flow as suggested in the previous post - but technically you can do it for payment providers that allow you to embed JS, the difficulty is that you generally need to provide a callback url (payment confirmation etc) you can use a REST/HTTP Flow but it is painful to make this truly secure. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard