Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
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

  • Fubar Profile Picture
    8,021 Super User 2025 Season 1 on at
    Re: PowerApps Portal Advance Form Purchase Metadata

    "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. 

  • CU13072107-2 Profile Picture
    424 on at
    Re: PowerApps Portal Advance Form Purchase Metadata

    @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

     




  • ragavanrajan Profile Picture
    7,036 Most Valuable Professional on at
    Re: PowerApps Portal Advance Form Purchase Metadata

    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.

     

     

     

     

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35